过滤帖子发布的日期以供显示。
原型
apply_filters( 'the_date', string $the_date, string $d, string $before, string $after )
参数
$the_date
(string)
格式化的日期字符串。
$d
(string)
PHP日期格式。如果未指定,则默认为“date_format”选项。
$before
(string)
日期之前的HTML输出。
$after
(string)
日期之后的HTML输出。
源文件
路径:wp-includes/general-template.php
其他
英文文档:https://developer.wordpress.org/reference/hooks/the_date/