A WordPress-centric search engine for devs and theme authors



human_time_diff ›

Since4.0.0
Deprecatedn/a
apply_filters( 'human_time_diff', $since, $diff, $from, $to )
Parameters: (4)
  • (string) $since The difference in human readable text.
    Required: Yes
  • (int) $diff The difference in seconds.
    Required: Yes
  • (int) $from Unix timestamp from which the difference begins.
    Required: Yes
  • (int) $to Unix timestamp to end the time difference.
    Required: Yes
Defined at:
Codex:

Filters the human readable difference between two timestamps.





Related Hooks: the_time, user_can_richedit

Source

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