W3cubDocs

/WordPress

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

return apply_filters( 'the_category', $thelist, $separator, $parents );

Changelog

Version Description
1.2.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/the_category