M_get_membership_active

The Membership 2 M get membership active function.

Description

M_get_membership_active(); 

Usage

  1. if ( !function_exists( 'M_get_membership_active' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'membership-2/app_old/membershipincludes/includes/functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = M_get_membership_active(); 
  7.  

Defined (1)

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

/app_old/membershipincludes/includes/functions.php  
  1. function M_get_membership_active() { 
  2.  
  3. if(defined('MEMBERSHIP_GLOBAL_TABLES') && MEMBERSHIP_GLOBAL_TABLES === true) { 
  4. if(function_exists('get_blog_option')) { 
  5. if(function_exists('switch_to_blog')) { 
  6. switch_to_blog(MEMBERSHIP_GLOBAL_MAINSITE); 
  7. $membershipactive = get_blog_option(MEMBERSHIP_GLOBAL_MAINSITE, 'membership_active', 'no'); 
  8. if(function_exists('restore_current_blog')) { 
  9. restore_current_blog(); 
  10. } else { 
  11. $membershipactive = get_option('membership_active', 'no'); 
  12. } else { 
  13. $membershipactive = get_option('membership_active', 'no'); 
  14.  
  15. return $membershipactive; 
  16.