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

  1. if ( !function_exists( 'force_ssl_admin' ) ) { 
  2. require_once ABSPATH . WPINC . '/functions.php'; 
  3.  
  4. // Optional. Whether to force SSL in admin screens. Default null. 
  5. $force = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = force_ssl_admin($force); 
  9.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/functions.php  
  1. function force_ssl_admin( $force = null ) { 
  2. static $forced = false; 
  3.  
  4. if ( !is_null( $force ) ) { 
  5. $old_forced = $forced; 
  6. $forced = $force; 
  7. return $old_forced; 
  8.  
  9. return $forced;