显示类别,标签,术语或作者说明。
原型
the_archive_description( string $before = '', string $after = '' )
参数
$before
(string)
(Optional)
要添加到说明中的内容。
$after
(string)
(Optional)
要附加到说明的内容。
源文件
路径:wp-includes/general-template.php
<?php
...
function the_archive_description( $before = '', $after = '' ) {
$description = get_the_archive_description();
if ( $description ) {
echo $before . $description . $after;
}
}
...
?>
其他
英文文档:https://developer.wordpress.org/reference/functions/the_archive_description/