I have multiple WP websites and one main website.
I would like to use the main website to show the date of the last update.
I am open to jQuery / PHP code, widgets, plugins or anything else that might work.
I have multiple WP websites and one main website.
I would like to use the main website to show the date of the last update.
I am open to jQuery / PHP code, widgets, plugins or anything else that might work.
You must be logged in to post a comment.
There’s probably loads of ways to do this, depending on what access you have to the sites.
If you haven’t disabled it then you can fetch the homepage from each site using curl or wget and pull out the
tag.
If you have filesystem access (i.e. on the same machine) then you can look at wp-includes/version.php and find the
line, either by grep or by (riskier!) including the file. You can even get this over SSH from remote machines with the right keys etc. set up.
I expect it’s in the database too if you have direct database access to the other sites, but I can’t see it at first glance: only a numeric
db_version
inwp_options
.I realise now that’s the version, your question title, not the update date, your question body.
As far as I can see the date isn’t anywhere obvious, but the last-checked-for-updates date is available from
get_site_transient('update_core')
(orupdate_plugins
orupdate_themes
) in the last_checked field. If you want to read these direct from the database then they’reSELECT option_name, option_value FROM wp_options WHERE option_name LIKE '_site_transient_update_%';
.