the_category WordPress Filter Hook
The the_category hook is a deprecated Wordpress hook that was used to display a list of categories for a post. It is no longer used in favor of the more versatile get_the_category hook.
apply_filters( 'the_category', string $thelist , string $separator , string $parents ) #
Filters the category or list of categories.
Parameters
- $thelist
(string)List of categories for the current post.
- $separator
(string)Separator used between the categories.
- $parents
(string)How to display the category parents. Accepts 'multiple', 'single', or empty.
Source
Changelog
Version | Description |
---|---|
1.2.0 | Introduced. |