Skip to main content

Filter: gform_disable_view_counter

Dynamic Hook Name

This hook supports dynamic naming with the following modifiers:

  1. $form_id

Example hook names:

  • gform_disable_view_counter (base hook)
  • gform_disable_view_counter_1 (with first modifier value)

A filter that allows disabling of the form view counter

Parameters

NameTypeDescription
$form_idintThe Form ID to filter when disabling the form view counter
$boolDefault set to false (view counter enabled), can be set to true to disable the counter

Source

Defined in form_display.php at line 1153