um_human_time_diff

Hook type

Filter

Description

Change human time string

Parameters

$since

(string) Disable UM Cron?

$diff

(int) Difference in seconds

$from

(int) From Timestamp

$to

(int) To Timestamp

Usage

add_filter( 'um_human_time_diff', 'function_name', 10, 4 );

Examples

<?php
add_filter( 'um_human_time_diff', 'my_human_time_diff', 10, 4 );
function my_human_time_diff( $since, $diff, $from, $to ) {
    // your code here
return $since;
}
?>

Change Log

Since: 2.0

Source

um_human_time_diff is located in includes/core/class-date-time.php::line 126