M_update_option

The Membership 2 M update option function.

Description

M_update_option( $key, $value ); 

Parameters (2)

0. $key
The key.
1. $value
The value.

Usage

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

Defined (1)

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

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