欢迎使用WPSE。
你可以试着filter 它具有:
add_filter( \'human_time_diff\', \'wpse_hourly_human_time_diff\', 10, 4 );
 其中过滤器的回调为。
/**
 * Human time difference in hours only.
 *
 * @param string $since The difference in human readable text.
 * @param int    $diff  The difference in seconds.
 * @param int    $from  Unix timestamp from which the difference begins.
 * @param int    $to    Unix timestamp to end the time difference.
 */
function wpse_hourly_human_time_diff( $since, $diff, $from, $to ){
    return round( $diff / HOUR_IN_SECONDS, 1 );
} 
 但您需要控制要在何处应用此筛选器:
remove_filter( \'human_time_diff\', \'wpse_hourly_human_time_diff\', 10 );
 以及进一步的限制。
希望你能适应你的需要。