Using Gravity Forms ‘gform_settings_menu’ PHP filter

The gform_settings_menu filter allows you to add or remove tabs on the main Gravity Forms settings page.


add_filter('gform_settings_menu', 'add_custom_settings_tab');


  • $tabs (array): An array of tabs to be filtered, with the following format:
        array('name' => 'tab1', 'label' => 'Settings 1'),
        array('name' => 'tab2', 'label' => 'Settings 2')

More information

See Gravity Forms Docs: gform_settings_menu


Add a custom settings tab

This code adds a custom settings tab to the main Gravity Forms settings page.

add_filter('gform_settings_menu', 'add_custom_settings_tab');

function add_custom_settings_tab($tabs) {
    $tabs[] = array('name' => 'my_tab', 'label' => 'My Settings');
    return $tabs;

Remove a tab

This code removes a tab from the main Gravity Forms settings page. The tab name will be the add-on slug for add-ons that extend the official Gravity Forms add-on framework.

add_filter('gform_settings_menu', function ($tabs) {
    $remove_names = array('gravityformsuserregistration');

    foreach ($tabs as $key => $tab) {
        if (in_array($tab['name'], $remove_names)) {

    return $tabs;


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

Source Code

This filter is located in GFSettings::page_header() in settings.php.