membership_purchase_button

The Membership 2 membership purchase button hook.

Description

do_action( 'membership_purchase_button', (unknown) $sub, (unknown) $pricing, (unknown) $member_id ); 

Parameters (3)

0. $sub (unknown)
The sub.
1. $pricing (unknown)
The pricing.
2. $member_id (unknown)
The member id.

Usage

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

Defined (5)

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

/app_old/membershipincludes/includes/popover_payment.form.php  
  1. do_action('membership_purchase_button', $sub, $pricing, $member->ID); 
  1. do_action('membership_purchase_button', $sub, $pricing, $member->ID); 
/app_old/membershipincludes/includes/payment.form.php  
  1. do_action('membership_purchase_button', $sub, $pricing, $member->ID); 
  1. do_action('membership_purchase_button', $sub, $pricing, $member->ID); 
/app_old/membershipincludes/classes/membershipadmin.php  
  1. <?php do_action('membership_purchase_button', $subscription, $pricing, $user_id); ?>