apply_filters( 'human_time_diff', string $since, int $diff, int $from, int $to )
Filters the human readable difference between two timestamps.
Parameters
- $since
-
(string) The difference in human readable text.
- $diff
-
(int) The difference in seconds.
- $from
-
(int) Unix timestamp from which the difference begins.
- $to
-
(int) Unix timestamp to end the time difference.
Source
Changelog
Version | Description |
---|---|
4.0.0 | Introduced. |
© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/human_time_diff