Using Gravity Forms ‘gform_plugin_settings_fields’ PHP action

The gform_plugin_settings_fields filter is used to customize the available settings on the Forms > Settings page.

Usage

To use the filter for all forms:

add_filter('gform_plugin_settings_fields', 'your_function_name');

Parameters

  • $fields (array) – The plugin settings fields. See the Settings API for details about how the fields are defined.
$fields = array(
    'license_key'         => array(),
    'license_key_details' => array(),
    'css'                 => array(),
    'currency'            => array(),
    'logging'             => array(),
    'toolbar'             => array(),
    'background_updates'  => array(),
    'no_conflict_mode'    => array(),
    'akismet'             => array(),
    'html5'               => array(),
);

More information

See Gravity Forms Docs: gform_plugin_settings_fields

This filter was added in Gravity Forms v2.5.16.4. Source code location: GFSettings::plugin_settings_fields() in settings.php.

Examples

Remove license details

This example removes the “Your License Details” panel from the Forms > Settings page.

add_filter('gform_plugin_settings_fields', function ($fields) {
    unset($fields['license_key_details']);
    return $fields;
});