gform_paypal_feed_settings_fields

gform_paypal_feed_settings_fields

DescriptionUsageParametersExamplesPlacementSinceSource Code

Description
This filter allows adding custom settings fields to PayPal Standard.
Usage
1add_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
123456789101112add_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' => '

Testing. Test

'    );    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.

發表回覆

您的郵箱地址不會被公開。 必填項已用 * 標註