gform_form_switcher_forms

Description

Filters through and allows modification of the forms displayed in the Form Switcher dropdown.

Parameters

  • $forms array

    Array containing all forms, sorted by title.

Examples

Display First Ten Forms

add_filter( 'gform_form_switcher_forms', 'limit_form_switcher_forms', 10, 1 );
function limit_form_switcher_forms( $forms ) {
    return array_splice( $forms, 0, 10 );
}

Placement

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

Since

This filter was added in Gravity Forms version 2.4.16.

Source Code

This filter is located in GFForms::form_switcher in gravityforms.php