Wordpress 钩子:human_time_diff
文章目录
过滤两个时间戳之间的人类可读差异。
原型
apply_filters( 'human_time_diff', string $since, int $diff, int $from, int $to )
参数
$since
(string)
人类可读文本的差异。
$diff
(int)
秒的差异。
$from
(int)
从中开始差异的Unix时间戳。
$to
(int)
Unix时间戳结束时差。
源文件
路径:wp-includes/formatting.php
其他
英文文档:https://developer.wordpress.org/reference/hooks/human_time_diff/
文章作者 iBllex
上次更新 2019-02-15