pmpro_after_checkout

The Paid Memberships Pro pmpro after checkout hook.

Description

do_action( 'pmpro_after_checkout', (unknown) $morder_user_id ); 

Parameters (1)

0. $morder_user_id (unknown)
The morder user id.

Usage

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

Defined (3)

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

/services/twocheckout-ins.php  
  1. do_action("pmpro_after_checkout", $morder->user_id); 
/services/ipnhandler.php  
  1. do_action( "pmpro_after_checkout", $morder->user_id ); 
/preheaders/checkout.php  
  1. do_action( "pmpro_after_checkout", $user_id, $morder ); //added $morder param in v2.0