get_the_post_type_description example


function get_the_archive_description() {
    if ( is_author() ) {
        $description = get_the_author_meta( 'description' );
    } elseif ( is_post_type_archive() ) {
        $description = get_the_post_type_description();
    } else {
        $description = term_description();
    }

    /** * Filters the archive description. * * @since 4.1.0 * * @param string $description Archive description to be displayed. */
    
Home | Imprint | This part of the site doesn't use cookies.