WP_FS__IS_HTTPS

The NextGEN Gallery WP FS IS HTTPS constant.

Value (string)

( WP_FS__IS_HTTP_REQUEST && 
isset( $_SERVER['HTTP_X_FORWARDED_PROTO'] ) && 
'https' === strtolower( $_SERVER['HTTP_X_FORWARDED_PROTO'] ) 
) || 
( isset( $_SERVER['HTTPS'] ) && 'on' == $_SERVER['HTTPS'] ) || 
( isset( $_SERVER['SERVER_PORT'] ) && 443 == $_SERVER['SERVER_PORT'] ) 

Usage

  1. if ( defined( 'WP_FS__IS_HTTPS' ) ) { 
  2.  
  3. // grab the value 
  4. $value = constant( 'WP_FS__IS_HTTPS' ); 
  5.  
  6. if ( !empty( $value ) ) { 
  7. // go forth and prosper... 
  8.  

Defined (1)

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

/freemius/config.php  
  1. define( 'WP_FS__IS_HTTPS', ( WP_FS__IS_HTTP_REQUEST &&