gform_form_switcher_forms

gform_form_switcher_forms

DescriptionParametersExamplesDisplay First Ten FormsPlacementSinceSource Code

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

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注