gform_advanced_settings

Description

Use this filter to create a new form setting under the Properties tab. Useful when implementing a new setting that applies to the form rather than a specific field.

This hook has been deprecated. Please use gform_form_settings instead.

Usage

add_action( 'gform_advanced_settings', 'my_form_advanced_settings', 10, 2 );

Parameters

  • $position integerSpecifies the position that the settings will be displayed. For a list of all available positions, search form_detail.php for “gform_advanced_settings”.
  • $form_id integer

    The ID of the current form.

Examples

This hook functions identically to the gform_field_advanced_settings hook. The only difference is the location of where the custom setting is output. gform_field_advanced_settings|Reference this example for usage.

Source Code

This filter is located in the following methods:

  • GFFormDetail::forms_page() in form_detail.php
  • GFFormSettings::form_settings_ui() in form_settings.php