get_the_post_type_description WordPress Filter Hook

The get_the_post_type_description WordPress hook is used to get the description for a post type. The post type must be specified when using this hook.

apply_filters( 'get_the_post_type_description', string $description, WP_Post_Type $post_type_obj ) #

Filters the description for a post type archive.


Parameters

$description

(string)The post type description.

$post_type_obj

(WP_Post_Type)The post type object.


Top ↑

Source

File: wp-includes/general-template.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.9.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.

Show More
Show More