get_the_post_type_description()
Gets the description of the current archive page for the post type.
The description is specified when registering the post type in the description parameter, see the function register_post_type().
The function should be used on the archive page of the post type, see the conditional tag is_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
Returns
String. Description of the archive page for the post type.
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. |