membership_move_subscription

The WordPress Core membership move subscription hook.

Description

add_action( 'membership_move_subscription', (string) $m_roles_movedsub, (int) $int, (int) $int ); 

Parameters (3)

0. $m_roles_movedsub (string) => 'M_Roles_movedsub'
The roles movedsub.
1. $int (int) => 10
The int.
2. $int (int) => 6
The int.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'membership_move_subscription', $m_roles_movedsub, $int, $int ); 
The following example is for adding a hook callback.
  1. // define the membership_move_subscription callback 
  2. function action_membership_move_subscription( $m_roles_movedsub, $int, $int ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'membership_move_subscription', 'action_membership_move_subscription', 10, 3 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'membership_move_subscription', 'action_membership_move_subscription', 10, 3 ); 

Defined (4)

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

/app_old/membershipincludes/addons/integrated.wproles.php  
  1. add_action( 'membership_move_subscription', 'M_Roles_movedsub', 10, 6 ); 
/app_old/membershipincludes/addons/newsstream.php  
  1. add_action( 'membership_move_subscription', 'membership_record_sub_move', 10, 6 ); 
/app_old/membershipincludes/classes/class.ping.php  
  1. add_action( 'membership_move_subscription', 'M_ping_movedsub', 10, 6 ); 
/app_old/membershipincludes/classes/class.membership.php  
  1. do_action( 'membership_move_subscription', $fromsub_id, $fromlevel_id, $tosub_id, $tolevel_id, $to_order, $this->ID );