DescriptionUsageParametersExamplesPlacementSource Code
Description
Allows changes to be made to the PayPal business email while validating the IPN from PayPal.
Usage
1add_filter( 'gform_paypal_business_email', 'your_function_name', 10, 3 );
Parameters
$paypalEmail bool
The PayPal email.
$feed Feed Object
The current feed.
$entry Entry Object
The current entry.
Examples
12345add_filter( 'gform_paypal_business_email', 'change_email', 10, 3 );function change_email( $paypalEmail, $feed, $entry ){ $paypalEmail = '[email protected]'; return $paypalEmail;}
Placement
This code should be placed in the functions.php file of your active theme.
Source Code
This filter is located in GFPayPal::can_process_ipn() in gravityformspaypal/class-gf-paypal.php.