Forums

How do I display the latest available version of WordPress? (4 posts)

  1. MvdL79
    Member
    Posted 2 years ago #

    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?

  2. MichaelH
    Volunteer
    Posted 2 years ago #

    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.

  3. MvdL79
    Member
    Posted 2 years ago #

    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...

  4. MichaelH
    Volunteer
    Posted 2 years ago #

    I suppose you could use the techinque here:
    Integrating_WordPress_with_Your_Website

    <?php echo 'currently installed wp version is: ' . $wp_version; ?>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.