Filter: gform_checkbox_limit_max_message
Dynamic Hook Name
This hook supports dynamic naming with the following modifiers:
$this->formId$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
| Name | Type | Description |
|---|---|---|
| $message | string | The message to filter. |
| $max | int | The maximum number of choices that must be selected. |
| $field | object | The field currently being processed. |
Since
Source
Defined in includes/fields/class-gf-field-checkbox.php at line 319