Skip to main content

Filter: gform_checkbox_limit_max_message

Dynamic Hook Name

This hook supports dynamic naming with the following modifiers:

  1. $this->formId
  2. $this->id

Example hook names:

  • gform_checkbox_limit_max_message (base hook)
  • gform_checkbox_limit_max_message_1 (with first modifier value)
  • gform_checkbox_limit_max_message_1_2 (with all modifier values)

Modify the message displayed when a checkbox is limited to a maximum number of choices.

Parameters

NameTypeDescription
$messagestringThe message to filter.
$maxintThe maximum number of choices that must be selected.
$fieldobjectThe field currently being processed.

Since

Source

Defined in includes/fields/class-gf-field-checkbox.php at line 319