FS_API__PROTOCOL

The NextGEN Gallery FS API PROTOCOL constant.

Value (string)

version_compare( $curl_version['version'], '7.37', '>=' ) ? 'https' : 'http' 

Usage

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

Defined (1)

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

/freemius/includes/sdk/Freemius.php  
  1. define( 'FS_API__PROTOCOL', version_compare( $curl_version['version'], '7.37', '>=' ) ? 'https' : 'http' );