pmpro_checkout_oldemail
The Paid Memberships Pro pmpro checkout oldemail hook.
Description
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.
- $oldem_user_user_email = apply_filters( 'pmpro_checkout_oldemail', $oldem_user_user_email );
- if ( !empty( $oldem_user_user_email ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the pmpro_checkout_oldemail callback
- function filter_pmpro_checkout_oldemail( $oldem_user_user_email ) {
- // make filter magic happen here...
- return $oldem_user_user_email;
- };
- // add the filter
- add_filter( 'pmpro_checkout_oldemail', 'filter_pmpro_checkout_oldemail', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- 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
- $oldemail = apply_filters( "pmpro_checkout_oldemail", ( false !== $oldem_user ? $oldem_user->user_email : null ) );