apply_filters( ‘the_category’, string $thelist, string $separator, string $parents )

In this article

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

VersionDescription
1.2.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.