force_ssl_login

Whether SSL login should be forced.

Description

force_ssl_login( (null) $force = null ); 

Parameters (1)

0. $force — Optional. (null) => null
Whether to force SSL login. Default null.

Usage

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

Defined (1)

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

/wp-includes/deprecated.php  
  1. function force_ssl_login( $force = null ) { 
  2. _deprecated_function( __FUNCTION__, '4.4.0', 'force_ssl_admin()' ); 
  3. return force_ssl_admin( $force );