force_ssl_admin
Whether to force SSL used for the Administration Screens.
Description
force_ssl_admin( (null) $force = null );
Parameters (1)
- 0. $force — Optional. (null) =>
null
- Whether to force SSL in admin screens. Default null.
Usage
if ( !function_exists( 'force_ssl_admin' ) ) { require_once ABSPATH . WPINC . '/functions.php'; } // Optional. Whether to force SSL in admin screens. Default null. $force = null; // NOTICE! Understand what this does before running. $result = force_ssl_admin($force);
Defined (1)
The function is defined in the following location(s).
- /wp-includes/functions.php
- function force_ssl_admin( $force = null ) {
- static $forced = false;
- if ( !is_null( $force ) ) {
- $old_forced = $forced;
- $forced = $force;
- return $old_forced;
- }
- return $forced;
- }