pmpro_checkout_level

The Paid Memberships Pro pmpro checkout level hook.

Description

apply_filters( 'pmpro_checkout_level', (unknown) $morder_membership_level ); 

Parameters (1)

0. $morder_membership_level (unknown)
The morder membership level.

Usage

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

Defined (4)

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

/preheaders/checkout.php  
  1. $morder->membership_level = apply_filters( "pmpro_checkout_level", $morder->membership_level ); 
/includes/updates/upgrade_1_8_9_3.php  
  1. $pmpro_level = apply_filters( "pmpro_checkout_level", $pmpro_level ); 
/includes/functions.php  
  1. $pmpro_level = apply_filters( "pmpro_checkout_level", $pmpro_level ); 
/classes/gateways/class.pmprogateway_paypalexpress.php  
  1. $morder->membership_level = apply_filters("pmpro_checkout_level", $morder->membership_level);