wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes
get_the_archive_description › WordPress Function
Depuis4.1.0
Dépréciéen/a
› get_the_archive_description ( Pas de paramètres )
| Voir: | |
| Retourne: |
|
| Défini(e) dans: |
|
| Codex: | |
| Changelog: |
|
Retrieves the description for an author, post type, or term archive.
Fonctions en relation: the_archive_description, get_the_author_description, get_file_description, get_the_archive_title, get_the_post_type_description
Source
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.
*/
return apply_filters( 'get_the_archive_description', $description );
}