Skip to main content

Filter: gform_phone_formats

Dynamic Hook Name

This hook supports dynamic naming with the following modifiers:

  1. $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

NameTypeDescription
$phone_formatsarrayThe phone formats.
$form_idintThe ID of the current form.

Since

Source

Defined in includes/fields/class-gf-field-phone.php at line 881