Filter: gform_post_category_choices
Dynamic Hook Name
This hook supports dynamic naming with the following modifiers:
$form_id$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
| Name | Type | Description |
|---|---|---|
| $field | \GF_Field | The category choices field. |
| $form_id | int | The current form ID. |
Source
Defined in common.php at line 5205