Files
Filename | Hook Type | Line Number | PHP Doc |
---|---|---|---|
wp-includes/category-template.php | apply_filters | 98 | /** * Filters the array of categories to return for a post. * * @since 3.1.0 * @since 4.4.0 Added the `$post_id` parameter. * * @param WP_Term[] $categories An array of categories to return for the post. * @param int|false $post_id The post ID. */ |
Hook Parameters
Parameter Type | Name | Description |
---|---|---|
WP_Term[] | $categories | An array of categories to return for the post. |
int|false | $post_id | The post ID. |