bookmark_bordergform_paypal_action_fields

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

    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
}
&#91;/php&#93;

<h2>Source Code</h2>


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