M_get_option

The Membership 2 M get option function.

Description

M_get_option( $key, (constant) $default = false ); 

Parameters (2)

0. $key
The key.
1. $default — Optional. (constant) => false
The default.

Usage

  1. if ( !function_exists( 'M_get_option' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'membership-2/app_old/membershipincludes/includes/functions.php'; 
  3.  
  4. // The key. 
  5. $key = null; 
  6.  
  7. // The default. 
  8. $default = false; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = M_get_option($key, $default); 
  12.  

Defined (1)

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

/app_old/membershipincludes/includes/functions.php  
  1. function M_get_option($key, $default = false) { 
  2.  
  3. if(defined('MEMBERSHIP_GLOBAL_TABLES') && MEMBERSHIP_GLOBAL_TABLES === true) { 
  4. if(function_exists('get_blog_option')) { 
  5. return get_blog_option(MEMBERSHIP_GLOBAL_MAINSITE, $key, $default); 
  6. } else { 
  7. return get_option( $key , $default); 
  8. } else { 
  9. return get_option( $key, $default); 
  10.