Filter: gform_phone_formats
Dynamic Hook Name
This hook supports dynamic naming with the following modifiers:
$form_id
Example hook names:
gform_phone_formats(base hook)gform_phone_formats_1(with first modifier value)
Allow custom phone formats to be defined.
Parameters
| Name | Type | Description |
|---|---|---|
| $phone_formats | array | The phone formats. |
| $form_id | int | The ID of the current form. |
Since
Source
Defined in includes/fields/class-gf-field-phone.php at line 881