pmpro_checkout_oldemail

The Paid Memberships Pro pmpro checkout oldemail hook.

Description

apply_filters( 'pmpro_checkout_oldemail', (null) $oldem_user_user_email ); 

Parameters (1)

0. $oldem_user_user_email — Optional. (null) => ( false !== $oldem_user ? $oldem_user->user_email : null )
The false oldem user oldem user user email null.

Usage

To run the hook, copy the example below.
  1. $oldem_user_user_email = apply_filters( 'pmpro_checkout_oldemail', $oldem_user_user_email ); 
  2.  
  3. if ( !empty( $oldem_user_user_email ) ) { 
  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_oldemail callback 
  2. function filter_pmpro_checkout_oldemail( $oldem_user_user_email ) { 
  3. // make filter magic happen here... 
  4. return $oldem_user_user_email
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'pmpro_checkout_oldemail', 'filter_pmpro_checkout_oldemail', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'pmpro_checkout_oldemail', 'filter_pmpro_checkout_oldemail', 10, 1 ); 

Defined (1)

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

/preheaders/checkout.php  
  1. $oldemail = apply_filters( "pmpro_checkout_oldemail", ( false !== $oldem_user ? $oldem_user->user_email : null ) );