Description
This hook is used add individual options to the PayPal feed.
Usage
add_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.
add_action( 'gform_paypal_action_fields', 'add_paypal_options', 10, 2 ); function add_paypal_options( $feed, $form ) { ?> <li id="my_third_party_option"> <input type="checkbox" value="1" id="paypal_my_third_party" name="paypal_my_third_party"> <label for="paypal_my_third_party" class="inline">Send transactions to My Third Party</label> </li> <?php }
Source Code
do_action( 'gform_paypal_action_fields', $this->get_current_feed(), $this->get_current_form() )
This filter is located in GFPayPal::settings_options() in class-gf-paypal.php.