wpseek.com
WordPress开发者和主题制作者的搜索引擎
get_the_archive_description › WordPress Function
Since4.1.0
已弃用n/a
› get_the_archive_description ( 没有参数 )
查看: | |
返回: |
|
定义在: |
|
文档: | |
Change Log: |
|
Retrieves the description for an author, post type, or term archive.
源码
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 ); }