A WordPress-centric search engine for devs and theme authors



force_ssl_admin ›

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:

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;
}