为xml文件输出iso8601格式的日期。
原型
the_date_xml()
源文件
路径:wp-includes/general-template.php
<?php
...
function the_date_xml() {
echo mysql2date( 'Y-m-d', get_post()->post_date, false );
}
...
?>
其他
英文文档:https://developer.wordpress.org/reference/functions/the_date_xml/