How do I display the latest available version of WordPress with PHP?
E.g. when WordPress brings out a new version, I want to show it on my website with PHP. Just like in the admin screen of WordPress.
How do I do this?
How do I display the latest available version of WordPress with PHP?
E.g. when WordPress brings out a new version, I want to show it on my website with PHP. Just like in the admin screen of WordPress.
How do I do this?
Look at the get_preferred_from_update_core and get_core_updates functions in wp-admin/includes/update.php
Those functions get used by the "Right Now" dashboard widget via the update_right_now_message function.
And is possible to display the latest WordPress version on my website?
The website does not have WordPress. Of course I could do this by hand, but then I have to check versions and edit regularly by hand...
I suppose you could use the techinque here:
Integrating_WordPress_with_Your_Website
<?php echo 'currently installed wp version is: ' . $wp_version; ?>This topic has been closed to new replies.