M_Roles_update_level_information

The Membership 2 M Roles update level information function.

Description

M_Roles_update_level_information( $level_id ); 

Parameters (1)

0. $level_id
The level id.

Usage

  1. if ( !function_exists( 'M_Roles_update_level_information' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'membership-2/app_old/membershipincludes/addons/integrated.wproles.php'; 
  3.  
  4. // The level id. 
  5. $level_id = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = M_Roles_update_level_information($level_id); 
  9.  

Defined (1)

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

/app_old/membershipincludes/addons/integrated.wproles.php  
  1. function M_Roles_update_level_information( $level_id ) { 
  2.  
  3. $level = new M_Level( $level_id ); 
  4.  
  5. $level->update_meta( 'associated_wp_role', $_POST['levelrole'] ); 
  6.