Wordpress 钩子:get_post_time
文章目录
过滤写入帖子的本地化时间。
原型
apply_filters( 'get_post_time', string $time, string $d, bool $gmt )
参数
$time
(string)
格式化的时间。
$d
(string)
用于检索帖子写入时间的格式。接受’G’,‘U’或php日期格式。默认为“U”。
$gmt
(bool)
是否检索GMT时间。默认为false。
源文件
路径:wp-includes/general-template.php
其他
英文文档:https://developer.wordpress.org/reference/hooks/get_post_time/
文章作者 iBllex
上次更新 2019-02-14