Use this code instead:
function range_plu_plugin_meta( $plugin_meta, $plugin_file ) {
list( $slug ) = explode( "https://wordpress.stackexchange.com/", $plugin_file );
$slug_hash = md5( $slug );
$last_updated = get_transient( "range_plu_{$slug_hash}" );
if ( false === $last_updated ) {
$last_updated = range_plu_get_last_updated( $slug );
set_transient( "range_plu_{$slug_hash}", $last_updated, 86400 );
}
if ( $last_updated ) {
$last_updated = strtotime( $last_updated );
$last_updated = human_time_diff( $last_updated, current_time( 'timestamp' ) ) . ' ' . __( 'ago' );
$plugin_meta['last_updated'] = 'Last Updated: ' . esc_html( $last_updated );
}
return $plugin_meta;
}
Related Posts:
- Add Google Analytics manually, or use a plug-in?
- Custom pages with plugin
- How to catch/what to do with a WP Error Object
- How can I see all the actions attached to an “add_action” hook?
- Problems with autoloading classes via sp_autoload_register / maybe interfering WP-specific autoloader
- Advice on naming files for a plugin
- Echo simple string in Plugin
- For performance is it better to build custom functionality into the theme or a plugin
- Can we completely remove the WordPress Sitemaps (WordPress 5.5)?
- WordPress tips for speed and performance [closed]
- How can I show drafts in wp_dropdown_pages list?
- Can Not Redirect from Plugin-Registered Admin Page
- How to Reload the Dashboard After Clicking Update in Quick-Edit?
- Send batch of posts as HTML Email?
- How to make a WP admin button/menu similar to Jetpack Notifications?
- Translate third party plugin and save translation files in custom theme
- I need to generate the CSS for my plugin from a function, how do i map a request to a function in the front-end?
- Plugin “Meta Box”: Implementing meta boxes in custom post type
- register_theme_directory somehow “fails” when folder is outside of WP-Folder
- Disable / Deregister all JS from all plugins
- WordPress plugin for mail subscriptions [closed]
- Plugin allowing for artists, events and venues
- Using ACF to display data on all pages
- How to remove the woocommerce_checkout_process action hook in woocommerce if particular project in cart [closed]
- Shortcode is not working in homepage page template (custom front page)
- HTML in WooCommerce settings
- Create a list-style post of popular posts for the week?
- Redirecting to home page after login as custom role WordPress
- Only allowing some email addresses to create an account
- How to save generated JWT token to cookies on login?
- Assign / update custom field value for all posts (How can I assign only to posts without custom field value?)
- How to enable specific plugin only based around shop manager role?
- Fixing WordPress’s Bug (failed to send buffer of zlib output compression) results in “White Screen of Death”
- Is there any way to use google input tool or any other language keyboard with WordPress [closed]
- How to replace wordpress default text editor (TinyMCE) with a custom one.
- Consolidate plugin functionality into a theme
- Why can’t I access my Intranet LDAPS with NADI?
- Custom User meta field display
- How can i change the texts of plugin (created by me) in wordpress admin?
- How can integrate zend module with wordpress admin dashbord [closed]
- Can a plugin be run in a different language than WordPress?
- Executing jQuery in a plugin
- modify plugin to support RTL
- Bulk update wordpress posts
- Flipping Book PHP Code? Any experience?
- “W3 Total Cache” with “What Would Seth Godin Do” (and widgets?!)? [closed]
- cforms plugin function “my_cforms_logic” (for writing custom logic), is running 5 times
- Custom Post Type – custom form in dashboard
- Creating a form and displaying entry data as a table
- Getting 400 Error: redirect_uri_mismatch when trying to grant permission to Gmail SMTP plugin
- How to transfer data from an additional field in the tags?
- How can I apply no-disposable when programmatically adding a user with wp_insert_user()?
- Translation to ACF relationship field
- Expected ‘add_filter’ (T_STRING)
- Theme Functions run a function upon activation or preview
- Custom Module, Extending WP with a Plugin?
- Warning! PHP safe mode enabled!
- Dictionary-style definition list plugin
- Error Metabox Warning: call_user_func() expects parameter 1 to be a valid callback
- I created a plugin with ‘view page’ that uses MYSQL + PHP. When I use wp_insert_post(), it turns everything to HTML
- WordPress logout appends cache/all/index.php to the site_url()
- WP Posts-pages text hiding does not work
- how to upload folders and files to google storage bucket?
- Update content without the user having to refresh their page
- How to override the plugin in woocommerce
- ajax voting for custom post type
- How to see in Edit Comments if comment is from User and her Roles
- Delete postmeta when uninstall/delete plugin
- How to remove a css class for any wordpress page
- Should I paste CDN links in a JS file or use a Bootstrap CDN plugin?
- Posted posts scheduling to unhide for new members
- How to Order Sticky Posts? [duplicate]
- export high ress images to pdf
- Embedding code snippets in posts with indentation
- custom url with custom post
- How to tell if a script is being executed from a plugin, a theme or a child theme in WordPress?
- SWF in wordpress post
- Fake Single WordPress Post (Page) Loop
- woocommerce download post-types\writepanels limits?
- WordPress get id from json data with json_decode()
- Extend my plugin settings with hooks
- Make a plugin work on specified domain only
- how to change location of the plugins & wordpress themes folder
- how woocommerce swatch color name when hovered or selected
- Undefined constant error in pluggable.php
- WooCommerce plugins permalinks?
- Loading Canvas & WooCommerce translation file in child theme
- Requires PHP version 5.3.0
- How to Move a production WordPress site to local environment [closed]
- Can’t activate plugin [closed]
- ACF: Not displaying ACF data from another post
- Share or sync user table data with another user table
- Very slow page loads
- CPT template is not being automatically used single post pages
- I want to move the one click accesbility button on bottom of my website screen,
- WordPress : how to create onglet and remove it when only one
- Autocomplete search field that is feed by a taxonomy from custom post type?
- Plugins updates not showing on wordpress
- Which approach for managing automatic updates would be more robust?
- Custom Elementor controls not appearing in the widget Advanced tab using injection hooks