get_the_archive_description
Filters the archive description.
Usage
add_filter( 'get_the_archive_description', 'wp_kama_get_the_archive_description_filter' ); /** * Function for `get_the_archive_description` filter-hook. * * @param string $description Archive description to be displayed. * * @return string */ function wp_kama_get_the_archive_description_filter( $description ){ // filter... return $description; }
- $description(string)
- Archive description to be displayed.
Changelog
Since 4.1.0 | Introduced. |
Where the hook is called
get_the_archive_description
wp-includes/general-template.php 1851
return apply_filters( 'get_the_archive_description', $description );