pmpro_getOption

The Paid Memberships Pro pmpro getOption function.

Description

pmpro_getOption( $s, (constant) $force = false ); 

Parameters (2)

0. $s
The s.
1. $force — Optional. (constant) => false
The force.

Usage

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

Defined (1)

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

/includes/functions.php  
  1. function pmpro_getOption($s, $force = false) 
  2. if(get_option("pmpro_" . $s)) 
  3. return get_option("pmpro_" . $s); 
  4. else 
  5. return "";