Skip to main content

Filter: gform_require_login

Dynamic Hook Name

This hook supports dynamic naming with the following modifiers:

  1. $form_id

Example hook names:

  • gform_require_login (base hook)
  • gform_require_login_1 (with first modifier value)

Filter whether the user must be logged-in to view and submit the form.

Parameters

NameTypeDescription
$require_loginboolIndicates if the form requires the user to be logged-in.
$formarrayThe current form object.

Since

Source

Defined in common.php at line 7553