pmpro_https_filter

The Paid Memberships Pro pmpro https filter function.

Description

pmpro_https_filter( $s ); 

Parameters (1)

0. $s
The s.

Usage

  1. if ( !function_exists( 'pmpro_https_filter' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'paid-memberships-pro/includes/https.php'; 
  3.  
  4. // The s. 
  5. $s = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = pmpro_https_filter($s); 
  9.  

Defined (1)

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

/includes/https.php  
  1. function pmpro_https_filter($s) 
  2. global $besecure; 
  3. $besecure = apply_filters('pmpro_besecure', $besecure); 
  4.  
  5. if($besecure || is_ssl()) 
  6. return str_replace("http:", "https:", $s); 
  7. else 
  8. return str_replace("https:", "http:", $s);