M_Roles_restoresart

The Membership 2 M Roles restoresart function.

Description

M_Roles_restoresart( $user_id ); 

Parameters (1)

0. $user_id
The user id.

Usage

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

Defined (1)

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

/app_old/membershipincludes/addons/integrated.wproles.php  
  1. function M_Roles_restoresart( $user_id ) { 
  2.  
  3. global $wpdb; 
  4.  
  5. $start = get_user_meta( $user_id, $wpdb->prefix . 'm_backup_capabilites'); 
  6. update_user_meta( $user_id, $wpdb->prefix . 'capabilites', $start); 
  7.