On this page
apply_filters( 'human_time_diff', string $since, int $diff, int $from, int $to )
Filters the human readable difference between two timestamps.
Parameters
$sincestring-
The difference in human readable text.
$diffint-
The difference in seconds.
$fromint-
Unix timestamp from which the difference begins.
$toint-
Unix timestamp to end the time difference.
Source
File: wp-includes/formatting.php. View all references
return apply_filters( 'human_time_diff', $since, $diff, $from, $to );
Related
Used By
| Used By | Description |
|---|---|
| human_time_diff() wp-includes/formatting.php | Determines the difference between two timestamps. |
Changelog
| Version | Description |
|---|---|
| 4.0.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/human_time_diff