On this page
apply_filters( 'the_category', string $thelist, string $separator, string $parents )
Filters the category or list of categories.
Parameters
$theliststring-
List of categories for the current post.
$separatorstring-
Separator used between the categories.
$parentsstring-
How to display the category parents. Accepts
'multiple','single', or empty.
Source
File: wp-includes/category-template.php. View all references
return apply_filters( 'the_category', $thelist, $separator, $parents );
Related
Used By
| Used By | Description |
|---|---|
| Walker_Category_Checklist::start_el() wp-admin/includes/class-walker-category-checklist.php | Start the element output. |
| wp_popular_terms_checklist() wp-admin/includes/template.php | Retrieves a list of the most popular terms from the specified taxonomy. |
| wp_link_category_checklist() wp-admin/includes/template.php | Outputs a link category checklist element. |
| get_the_category_list() wp-includes/category-template.php | Retrieves category list for a post in either HTML list or custom format. |
Changelog
| Version | Description |
|---|---|
| 1.2.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/the_category