Skip to main content

Filter: gform_post_category_choices

Dynamic Hook Name

This hook supports dynamic naming with the following modifiers:

  1. $form_id
  2. $field->id

Example hook names:

  • gform_post_category_choices (base hook)
  • gform_post_category_choices_1 (with first modifier value)
  • gform_post_category_choices_1_2 (with all modifier values)

Allows you to filter (modify) the post category choices when using post fields.

Parameters

NameTypeDescription
$field\GF_FieldThe category choices field.
$form_idintThe current form ID.

Source

Defined in common.php at line 5205