membership_payment_processed

The Membership 2 membership payment processed hook.

Description

do_action( 'membership_payment_processed', (unknown) $user_id, (unknown) $sub_id, (number) $amount, (unknown) $currency, (unknown) $post_txn_id ); 

Parameters (5)

0. $user_id (unknown)
The user id.
1. $sub_id (unknown)
The sub id.
2. $amount (number)
The amount.
3. $currency (unknown)
The currency.
4. $post_txn_id (unknown)
The post txn id.

Usage

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

Defined (2)

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

/app_old/membershipincludes/gateways/gateway.paypalsolo.php  
  1. do_action('membership_payment_processed', $user_id, $sub_id, $amount, $currency, $_POST['txn_id']); 
/app_old/membershipincludes/gateways/gateway.paypalexpress.php  
  1. do_action('membership_payment_processed', $user_id, $sub_id, $amount, $currency, $_POST['txn_id']);