Filter: gform_text_counter_template
Dynamic Hook Name
This hook supports dynamic naming with the following modifiers:
$field->formId$field->id
Example hook names:
gform_text_counter_template(base hook)gform_text_counter_template_1(with first modifier value)gform_text_counter_template_1_2(with all modifier values)
Filters the text counter template.
The template supports the following variables: {current} and {max} and {remaining} {current} - The current number of characters entered. {max} - The maximum number of characters allowed. {remaining} - The number of characters remaining.
Parameters
| Name | Type | Description |
|---|---|---|
| $default_template | string | The text counter template. |
| $form_id | int | The current Form ID. |
| $field | \GF_Field | The current Field object. |
Since
Source
Defined in includes/fields/class-gf-field-text.php at line 197