gform_paypal_feed_settings_fields

Description

This filter allows adding custom settings fields to PayPal Standard.

Usage

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

Parameters

  • $default_settings array

    The default feed settings.

  • $form Form Object

    The current form.

Examples

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;
}

Placement

This code should be placed in the functions.php file of your active theme.

Since

This filter was added in Gravity Forms PayPal Standard version 2.2.

Source Code

This filter is located in GFPayPal::feed_settings_fields() in class-gf-paypal.php.