pmpro_membership_pre_membership_expiry

The Paid Memberships Pro pmpro membership pre expiry hook.

Description

do_action( 'pmpro_membership_pre_membership_expiry', (unknown) $e_user_id, (unknown) $e_membership_id ); 

Parameters (2)

0. $e_user_id (unknown)
The user id.
1. $e_membership_id (unknown)
The membership id.

Usage

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

Defined (1)

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

/scheduled/crons.php  
  1. do_action("pmpro_membership_pre_membership_expiry", $e->user_id, $e->membership_id );