membership_payment_new_case

The Membership 2 membership payment new case hook.

Description

do_action( 'membership_payment_new_case', (unknown) $user_id, (unknown) $sub_id, (unknown) $post_case_type ); 

Parameters (3)

0. $user_id (unknown)
The user id.
1. $sub_id (unknown)
The sub id.
2. $post_case_type (unknown)
The post case type.

Usage

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

Defined (2)

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

/app_old/membershipincludes/gateways/gateway.paypalsolo.php  
  1. do_action('membership_payment_new_case', $user_id, $sub_id, $_POST['case_type']); 
/app_old/membershipincludes/gateways/gateway.paypalexpress.php  
  1. do_action('membership_payment_new_case', $user_id, $sub_id, $_POST['case_type']);