Description
Filters the array of categories to return for a post.
Occurrences
Filename | Line Number |
---|---|
wp-includes/category-template.php | 98 |
Parameters
Type | Name | Description |
---|---|---|
WP_Term[] | $categories | An array of categories to return for the post. |
int|false | $post_id | The post ID. |
PHP Doc
/**
* 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.
*/