wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



force_ssl_content › WordPress Function

Seit2.8.5
Veraltetn/v
force_ssl_content ( $force = null )
Parameter:
  • (bool|null) $force Optional. Whether to force SSL in admin screens. Default null.
    Erforderlich: Nein
    Standard: null
Gibt zurück:
  • (bool) True if forced, false if not forced.
Definiert in:
Codex:

Determines whether to force SSL on content.



Quellcode

function force_ssl_content( $force = null ) {
	static $forced_content = false;

	if ( ! is_null( $force ) ) {
		$old_forced     = $forced_content;
		$forced_content = (bool) $force;
		return $old_forced;
	}

	return $forced_content;
}