pmpro_subscription_ipn_event_processed

Post processing for a specific subscription related IPN event ID.

Description

do_action( 'pmpro_subscription_ipn_event_processed', (string) $ipn_id, (MemberOrder) $morder ); 

Parameters (2)

0. $ipn_id (string)
- The ipn_track_id from the PayPal IPN request
1. $morder (MemberOrder)
- The completed Member Order object for the IPN request

Usage

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

Defined (1)

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

/services/ipnhandler.php  
  1. do_action('pmpro_subscription_ipn_event_processed', $ipn_id, $morder );