Using Gravity Forms ‘gform_paypal_feed_settings_fields’ PHP filter

The gform_paypal_feed_settings_fields filter allows you to add custom settings fields to PayPal Standard in Gravity Forms.


add_filter('gform_paypal_feed_settings_fields', 'your_function_name', 10, 2);


  • $default_settings (array): The default feed settings.
  • $form (Form Object): The current form.

More information

See Gravity Forms Docs: gform_paypal_feed_settings_fields


Adding a custom text field

This example adds a custom text field called “Testing” to the PayPal feed settings.

add_filter('gform_paypal_feed_settings_fields', 'add_custom_setting', 10, 2);

function add_custom_setting($default_settings, $form) {
    $default_settings[0]['fields'][] = array(
        'name' => 'Testing',
        'label' => 'Testing Label',
        'type' => 'text',
        'class' => 'medium',
        'required' => true,
        'tooltip' => '<h6>Testing. Test</h6>'

    return $default_settings;

Place this code in the functions.php file of your active theme. This filter was added in Gravity Forms PayPal Standard version 2.2. The filter is located in GFPayPal::feed_settings_fields() in class-gf-paypal.php.