Welcome to WPSE.
You can try to filter it with:
add_filter( 'human_time_diff', 'wpse_hourly_human_time_diff', 10, 4 );
where the filter’s callback is e.g.
/**
* 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 );
}
but you will need to control where you want to apply this filter with:
remove_filter( 'human_time_diff', 'wpse_hourly_human_time_diff', 10 );
and further restrictions.
Hope you can adjust to your needs.
Related Posts:
- Modify Gallery Output to render differently on a PAGE and a POST
- How do I change the content of an element for a theme without losing the styling?
- Is there anything that Joomla or Drupal can do that can’t be done in WordPress? [closed]
- Any post install tips after installing WordPress 3.0.1?
- Version Control: Entire site or just pieces?
- Customizing the Subject Field in WordPress’ Notification Emails?
- How to move wp-content (or uploads) outside of the WordPress directory
- How can I integrate pages written in something other than PHP?
- Maintaining synced staging/production WP sites
- WordPress Multi Site Best Practice
- Sub posts and non unique post_name
- Custom field values in permalink
- How to let a single post have its own domain name
- Redirect to requested page after (custom) login
- Custom protected password page with ACF
- Page load requires a trailing “/” [closed]
- How to instantly delete posts/pages permanently?
- dynamic external javascript generated using php
- Show Custom Taxonomy Slug(s)?
- How to re-arrange media uploaded using : media_handle_upload() as per year / month
- How could we customize the all posts page in the admin panel?
- What’s the proper way to use a custom table? [closed]
- How to retrieve the value stored in a multi-dimensional array and SUM the entries?
- Adding Pagination on a Custom Author Page
- How can I get the page url slug when ‘post_name’ returns an id?
- Woocommerce Product page edit
- Integrate WordPress into existing website
- How can I use get_bloginfo(‘admin_email’) in a custom PHP file?
- Turn off redirect to canonical domain (or host website on any hostname)
- CSS to remove “comments count” icon from main page [closed]
- What’s wrong with Customizing new user notification email by add_filter?
- Automatically Update Woocommerce Prices [closed]
- Multiple Tinymce/wp_editor in WordPress >4.8
- How to provide a demonstration of WordPress for new customers
- CPT Loop with ACF and passing ID between Loops
- Showcase elementor templates
- Add clickable arrows to parent menu items with children elements e.g. with
- Display User ID instead of Name or Username
- Woocomerce custom billing address fields display in order details [closed]
- Bind JS event to WordPress control customizer
- No shipping method has been selected [closed]
- How can I setup up an a pre-populated pdf based on what was entered? [closed]
- Get rid of title from static front page
- Make custom page look exactly as homepage
- Organizing the position of widgetized areas in the backend
- $wpdb->insert running multiple times?
- Get wordpress taxonomy slug name(s) to use as div class
- Why does my Posts page only show a single post when using Thematic?
- Specific colours for wordpress author ids
- add custom content to appearance/widgets screen
- How do I list custom taxonomy terms with the links?
- How to unpixelate logo?
- How to create a page /1 using ?
- Open “Visit site” in a new window?
- Remove header title form page through CSS [closed]
- What’s the right way to share data between widgets?
- custom css and javascript not working on page defined as template?
- Importing specified data/field
- Missing current_page_item in custom menu
- Attach File Funcion for Common people
- How to retain visual breadcrumbs w/ tricky URL structure? Custom post template?
- Mimicking admin panel menu from wordpress 3.0.1
- query variables for custom taxonomies
- How to get Previous Visited Page Information
- Adding overlay search to wordpress using add action/filter
- wordpress custom fields loop
- Custom admin menu items
- why won’t my custom css load with the enqueue method or any other method?
- How do I add a dropdown menu to a form?
- Query Product categories what have a custom field
- How to show Term ID beside Name Category with wp_dropdown_categories()
- How to create custom backend admin menu in different languages?
- WordPress Performance and bulk edits
- Delete page titles
- Woocommerce dependent attributes
- Send email notification when post type product is publish from pending status
- WordPress Customizer: Check for value of CSS selector and replace it
- How to add custom Author Info Box to blog posts “only” and NOT custom post templates
- Bio comes up when the visitor clicks on a picture
- How to find and replace (or add) specific word in a specific category?
- Accountless password generation
- Creating a Treeview Listing of a Directory
- WooCommerce – Adding custom HTML to specific product pages
- How do I move my sites to a child theme without loosing customisation?
- Displaying all Custom fields on post except some
- How to create new page can get custom field other post in wordpress
- How to appoint different users to different pages?
- insert autofocus in a custom taxonomy form
- display my pages html
- Is there a way to hide a user’s posts from their Activity feed?
- customize footer widgets area
- Accessing + retrieving custom database in WordPress
- updated permalink structure on localhost does not work
- Word Press Theme Customiser and Child theme Function.php
- Security Issues with custom user role or changing core role capabilities?
- adding new html css to wordpress section from codepen [closed]
- Disable all Fonts that are Standard in WordPress and replacing them with a custom Font?
- Custom product sorting archive page
- Add custom information in editor summary
- A Voting system for a pageants