get_the_post_type_description()
Retrieves the description for a post type archive.
Uses: get_post_type_object()
1 time — 0.000249 sec (fast) | 50000 times — 0.30 sec (very fast) | PHP 7.1.5, WP 4.9
Hooks from the function
Return
String
. The post type description.
Usage
get_the_post_type_description();
Examples
#1 Display the description of the post type archive
echo get_the_post_type_description();
Changelog
Since 4.9.0 | Introduced. |