apply_filters( 'the_date', $the_date, $format, $before, $after )
参数
  • (string) $the_date The formatted date string.
    Required:
  • (string) $format PHP date format.
    Required:
  • (string) $before HTML output before the date.
    Required:
  • (string) $after HTML output after the date.
    Required:
定义位置
相关勾子
get_the_datethe_timethe_titlethe_sitesthe_category
相关方法
the_dateget_the_datethe_date_xmlthe_timethe_titlethe_terms
引入
0.71
弃用
-

the_date是一个模板标签,显示一个文章或页面的发布日期。它可以用来在网站的不同地方显示日期,如在文章的元数据或文章内容本身。

过滤文章的发布日期,以便显示。

$the_date = apply_filters( 'the_date', $the_date, $format, $before, $after );

常见问题

FAQs
查看更多 >
闪电侠

(工作日 10:00 - 18:30 为您服务)

2026-03-15 15:37:21

您好,无论是售前、售后、意见建议……均可通过联系工单与我们取得联系。

您也可选择聊天工具与我们即时沟通或点击查看:

您的工单我们已经收到,我们将会尽快跟您联系!
取消
选择聊天工具: