当前浏览:首页 / WordPress钩子 / get_post_time

apply_filters( 'get_post_time', string|int $time, string $format, bool $gmt )

过滤撰写文章的本地化时间

postmore...

timemore...


参数

$time

(string|int) 格式化的日期字符串或Unix时间戳(如果$format为“U”或“G”)。

$format

(string) 用于检索文章撰写时间的格式。接受“G”、“U”或PHP日期格式。

$gmt

(bool) 是否检索GMT时间。



源码

查看源码 官方文档


更新日志

版本描述
2.6.0开始引入