wpseek.com
WordPress开发者和主题制作者的搜索引擎



the_archive_description › WordPress Function

Since4.1.0
已弃用n/a
the_archive_description ( $before = '', $after = '' )
参数: (2)
  • (string) $before Optional. Content to prepend to the description. Default empty.
    Required: No
    默认: (empty)
  • (string) $after Optional. Content to append to the description. Default empty.
    Required: No
    默认: (empty)
查看:
定义在:
文档:

Displays category, tag, term, or author description.



源码

function the_archive_description( $before = '', $after = '' ) {
	$description = get_the_archive_description();
	if ( $description ) {
		echo $before . $description . $after;
	}
}