• I am writing a plugin, need to update current wp version to latest version using codes or some wp-codex function.

    how can i do this thing by writing a function who update the current
    WordPress version to latest-version if available?
    (i think wp-admin/update.php helps but, can’t understand n trying, if someone has related function or codes then support)
    Thanks !!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    how can i do this thing by writing a function who update the current
    WordPress version to latest-version if available?

    You don’t! But you can alert the user that they should upgrade and make that a condition of running your plugin.

    Thread Starter FARAZFRANK

    (@farazfrank)

    Hi Jan Dembowski Volunteer Mod. & Brute Squad

    I have written a class which automatically updates all available WordPress updates (plugin, theme, wordpress).

    Its update all plugins, themes, and WordPress too.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to update wordpress using codes?’ is closed to new replies.