force_ssl_content

Whether to force SSL on content.

Description

force_ssl_content( (string) $force = '' ); 

Parameters (1)

0. $force — Optional. (string) => ''
The force.

Usage

  1. if ( !function_exists( 'force_ssl_content' ) ) { 
  2. require_once ABSPATH . WPINC . '/ms-functions.php'; 
  3.  
  4. // The force. 
  5. $force = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = force_ssl_content($force); 
  9.  

Defined (1)

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

/wp-includes/ms-functions.php  
  1. function force_ssl_content( $force = '' ) { 
  2. static $forced_content = false; 
  3.  
  4. if ( '' != $force ) { 
  5. $old_forced = $forced_content; 
  6. $forced_content = $force; 
  7. return $old_forced; 
  8.  
  9. return $forced_content;