M_AddSimpleInviteOptionsProcess

The Membership 2 M AddSimpleInviteOptionsProcess function.

Description

M_AddSimpleInviteOptionsProcess(); 

Usage

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

Defined (1)

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

/app_old/membershipincludes/addons/simple.invitecodes.php  
  1. function M_AddSimpleInviteOptionsProcess() { 
  2.  
  3. $Msi_options = M_get_option('membership_simpleinvite_options', array()); 
  4.  
  5. $Msi_options['invitecodes'] = (isset($_POST['invitecodes'])) ? $_POST['invitecodes'] : ''; 
  6. $Msi_options['inviterequired'] = (isset($_POST['inviterequired'])) ? $_POST['inviterequired'] : ''; 
  7. $Msi_options['inviteremove'] = (isset($_POST['inviteremove'])) ? $_POST['inviteremove'] : ''; 
  8.  
  9. M_update_option('membership_simpleinvite_options', $Msi_options); 
  10.  
  11.