DescriptionUsageParametersExamplesSource Code
Description
This hook is used add individual options to the PayPal feed.
Usage
1add_action( 'gform_paypal_action_fields', 'add_paypal_options', 10, 2 );
Parameters
$feed Feed Object
The configuration details for the current feed. This will be empty when initially creating a new form.
$form Form Object
The form for the current feed. This will be empty when initially creating a new form.
Examples
This example adds a checkbox field which would enable/disable a custom option.
1234567891011add_action( 'gform_paypal_action_fields', 'add_paypal_options', 10, 2 );function add_paypal_options( $feed, $form ) { ?>
get_current_feed(), $this->get_current_form() )
This filter is located in GFPayPal::settings_options() in class-gf-paypal.php.