category_description WordPress Filter Hook

The category_description hook allows you to add a description for a category. This can be useful for adding a short description of what the category is about.

apply_filters( 'category_description', string $description, WP_Term $category ) #

Filters the category description for display.


Parameters

$description

(string)Category description.

$category

(WP_Term)Category object.


Top ↑

Source

File: wp-includes/class-walker-category.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.