ms_gateway_transaction_log

The Membership 2 ms gateway transaction log hook.

Description

do_action( 'ms_gateway_transaction_log', $self_id, (string) $process, (unknown) $success, (unknown) $subscription_id, (unknown) $invoice_id, (number) $invoice_total, (unknown) $note, (unknown) $external_id ); 

Parameters (8)

0. $self_id
The self id.
1. $process (string) => 'process'
The process.
2. $success (unknown)
The success.
3. $subscription_id (unknown)
The subscription id.
4. $invoice_id (unknown)
The invoice id.
5. $invoice_total (number)
The invoice total.
6. $note (unknown)
The note.
7. $external_id (unknown)
The external id.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'ms_gateway_transaction_log', $self_id, $process, $success, $subscription_id, $invoice_id, $invoice_total, $note, $external_id ); 
The following example is for adding a hook callback.
  1. // define the ms_gateway_transaction_log callback 
  2. function action_ms_gateway_transaction_log( $self_id, $process, $success, $subscription_id, $invoice_id, $invoice_total, $note, $external_id ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'ms_gateway_transaction_log', 'action_ms_gateway_transaction_log', 10, 8 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'ms_gateway_transaction_log', 'action_ms_gateway_transaction_log', 10, 8 ); 

Defined (6)

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

/app/gateway/stripe/class-ms-gateway-stripe.php  
  1. do_action( 
  1. do_action( 
/app/gateway/paypalstandard/class-ms-gateway-paypalstandard.php  
  1. do_action( 
/app/gateway/paypalsingle/class-ms-gateway-paypalsingle.php  
  1. do_action( 
/app/gateway/authorize/class-ms-gateway-authorize.php  
  1. do_action( 
/app/controller/class-ms-controller-gateway.php  
  1. do_action(