wpseek.com
WordPress开发者和主题制作者的搜索引擎



human_time_diff › WordPress过滤钩子

Since4.0.0
已弃用n/a
› apply_filters( 'human_time_diff', $since, $diff, $from, $to )
参数: (4)
  • () since The difference in human-readable text.
    Required: Yes
  • () diff The difference in seconds.
    Required: Yes
  • () from Unix timestamp from which the difference begins.
    Required: Yes
  • () to Unix timestamp to end the time difference.
    Required: Yes
定义在:
文档:

Filters the human-readable difference between two timestamps.





Related Hooks: the_time, user_can_richedit

源码

return apply_filters( 'human_time_diff', $since, $diff, $from, $to );