Skip to main content

Filter: gform_disable_custom_field_names_query

Dynamic Hook Name

This hook supports dynamic naming with the following modifiers:

  1. $form_id

Example hook names:

  • gform_disable_custom_field_names_query (base hook)
  • gform_disable_custom_field_names_query_1 (with first modifier value)

Allow the postmeta query which retrieves the custom field names (meta keys) to be disabled.

Parameters​

NameTypeDescription
$disable_queryboolIndicates if the custom field names query should be disabled. Default is false.

Since​

  • 2.3.4.1

Source​

Defined in forms_model.php at line 4795