the_modified_date

过滤钩子
apply_filters( 'the_modified_date', $the_modified_date, $format, $before, $after )
参数
  • (string|false) $the_modified_date The last modified date or false if no post is found.
    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_modified_datethe_modified_timethe_modified_authorget_the_modified_timethe_weekday_date
相关方法
the_modified_dateget_the_modified_datethe_modified_timethe_modified_authorget_the_modified_timeget_the_modified_author
引入
2.1.0
弃用
-

the_modified_date – 这是一个WordPress函数,显示一个文章最后被修改的日期。the_modified_date函数生成一个文本字符串,包含一个文章最后被修改的日期,可以用来在文章的页面或自定义模板中显示这个信息。这个信息对于显示文章的修改时间,以及跟踪文章的历史是很有用的。

过滤显示一个文章最后修改的日期。

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

常见问题

FAQs
查看更多 >
闪电侠

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

2026-03-15 14:37:20

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

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

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