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.


Top ↑

Source

File: wp-includes/category-template.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
1.2.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.