apply_filters( 'the_time', get_the_time( $format )
参数
  • (string) $get_the_time The formatted time.
    Required:
  • (string) $format Format to use for retrieving the time the post was written. Accepts 'G', 'U', or PHP date format.
    Required:
定义位置
相关勾子
the_titleget_the_timethe_datethe_sitesthe_title_rss
相关方法
the_timethe_titleget_the_timetouch_timethe_datethe_meta
引入
0.71
弃用
-

the_time – 这是一个WordPress模板标签,它以格式化的方式显示一个文章、页面或自定义文章类型的日期和时间。它需要一个可选的格式参数,用来格式化显示的日期和时间。默认情况下,格式是由WordPress管理区的”日期格式”设置决定的。

筛选出一个文章的显示时间。

echo apply_filters( 'the_time', get_the_time( $format ), $format );

常见问题

FAQs
查看更多 >
闪电侠

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

2026-03-15 16:37:22

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

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

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