wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



force_ssl_admin › WordPress Function

Depuis2.6.0
Dépréciéen/a
force_ssl_admin ( $force = null )
Paramètres:
  • (string|bool) $force Optional. Whether to force SSL in admin screens. Default null.
    Requis: Non
    Défaut: null
Retourne:
  • (bool) True if forced, false if not forced.
Défini(e) dans:
Codex:

Determines whether to force SSL used for the Administration Screens.



Source

function force_ssl_admin( $force = null ) {
	static $forced = false;

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

	return $forced;
}