wpseek.com
A WordPress-centric search engine for devs and theme authors



force_ssl_admin › WordPress Function

Since2.6.0
Deprecatedn/a
force_ssl_admin ( $force = null )
Parameters:
  • (string|bool) $force Optional. Whether to force SSL in admin screens. Default null.
    Required: No
    Default: null
Returns:
  • (bool) True if forced, false if not forced.
Defined at:
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;
}