M_Roles_backupstart

Do_action( 'membership_add_level', $tolevel_id, $this->ID ); do_action( 'membership_drop_level', $fromlevel_id, $this->ID ); do_action( 'membership_move_level', $fromlevel_id, $tolevel_id, $this->ID );.

Description

M_Roles_backupstart( $user_id ); 

do_action( membership_add_subscription,, $tosub_id, $tolevel_id, $to_order, $this->ID); do_action( membership_drop_subscription, $fromsub_id, $this->ID ); do_action( membership_move_subscription, $fromsub_id, $tosub_id, $tolevel_id, $to_order, $this->ID );

Parameters (1)

0. $user_id
The user id.

Usage

  1. if ( !function_exists( 'M_Roles_backupstart' ) ) { 
  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_backupstart($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_backupstart( $user_id ) { 
  2.  
  3. global $wpdb; 
  4.  
  5. $start = get_user_meta( $user_id, $wpdb->prefix . 'capabilities'); 
  6. update_user_meta( $user_id, $wpdb->prefix . 'm_backup_capabilites', $start);