M_Roles_movedlevel

The Membership 2 M Roles movedlevel function.

Description

M_Roles_movedlevel( $fromlevel_id, $tolevel_id, $user_id ); 

Parameters (3)

0. $fromlevel_id
The fromlevel id.
1. $tolevel_id
The tolevel id.
2. $user_id
The user id.

Usage

  1. if ( !function_exists( 'M_Roles_movedlevel' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'membership-2/app_old/membershipincludes/addons/integrated.wproles.php'; 
  3.  
  4. // The fromlevel id. 
  5. $fromlevel_id = null; 
  6.  
  7. // The tolevel id. 
  8. $tolevel_id = null; 
  9.  
  10. // The user id. 
  11. $user_id = null; 
  12.  
  13. // NOTICE! Understand what this does before running. 
  14. $result = M_Roles_movedlevel($fromlevel_id, $tolevel_id, $user_id); 
  15.  

Defined (1)

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

/app_old/membershipincludes/addons/integrated.wproles.php  
  1. function M_Roles_movedlevel( $fromlevel_id, $tolevel_id, $user_id ) { 
  2.  
  3. M_Roles_leftlevel( $fromlevel_id, $user_id ); 
  4. M_Roles_joinedlevel( $tolevel_id, $user_id ); 
  5.