pmpro_subscribe_order

The Paid Memberships Pro pmpro subscribe order hook.

Description

apply_filters( 'pmpro_subscribe_order', (unknown) $order, (unknown) $instance ); 

Parameters (2)

0. $order (unknown)
The order.
1. $instance (unknown)
The instance.

Usage

To run the hook, copy the example below.
  1. $order = apply_filters( 'pmpro_subscribe_order', $order, $instance ); 
  2.  
  3. if ( !empty( $order ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the pmpro_subscribe_order callback 
  2. function filter_pmpro_subscribe_order( $order, $instance ) { 
  3. // make filter magic happen here... 
  4. return $order
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'pmpro_subscribe_order', 'filter_pmpro_subscribe_order', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'pmpro_subscribe_order', 'filter_pmpro_subscribe_order', 10, 2 ); 

Defined (8)

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

/classes/gateways/class.pmprogateway_stripe.php  
  1. $order = apply_filters("pmpro_subscribe_order", $order, $this); 
/classes/gateways/class.pmprogateway_paypalexpress.php  
  1. $order = apply_filters("pmpro_subscribe_order", $order, $this); 
/classes/gateways/class.pmprogateway_paypal.php  
  1. $order = apply_filters("pmpro_subscribe_order", $order, $this); 
/classes/gateways/class.pmprogateway_payflowpro.php  
  1. $order = apply_filters("pmpro_subscribe_order", $order, $this); 
/classes/gateways/class.pmprogateway_cybersource.php  
  1. $order = apply_filters("pmpro_subscribe_order", $order, $this); 
/classes/gateways/class.pmprogateway_check.php  
  1. $order = apply_filters("pmpro_subscribe_order", $order, $this); 
/classes/gateways/class.pmprogateway_authorizenet.php  
  1. $order = apply_filters("pmpro_subscribe_order", $order, $this); 
/classes/gateways/class.pmprogateway.php  
  1. $order = apply_filters("pmpro_subscribe_order", $order, $this);