• Resolved kuckovic

    (@kuckovic)


    Hi guys!

    I have a simple question.
    Is it allowed to update WordPress through a plugin?

    I have developed a plugin, that resets performs some basic tasks, when you activate it. It is to be used when you do a fresh install of WordPress on a website.

    Sometimes, I’m to lazy to download the newest version, and then I need to upgrade it when I perform my other routine tasks, like changing permalinks etc.
    I would like my plugin to check whether there is a new version of WordPress – and if so, it should upgrade it automatically.

    The only question is – is that allowed?
    If not, I will remove this function from my plugin – it’s still on localhost – the live version does NOT include this function yet.

    I hope someone can help me out a bit ??

    Best regards
    Aris Kuckovic

Viewing 5 replies - 1 through 5 (of 5 total)
  • Is this a plugin you plan to distribute on .org? If not, you could do what you want, but I doubt it’s something that would be allowed in the plugin repo.

    Besides, it’s something you can enable with with a simple constant in wp-config.php: https://codex.www.ads-software.com/Configuring_Automatic_Background_Updates#Constant_to_Configure_Core_Updates

    Thread Starter kuckovic

    (@kuckovic)

    Hi Jacob,

    Yes, my plugin is already in the plugin repo – I was just thinking about adding this feature aswell, but if it’s not allowed, then I won’t add it. I was just wondering, and didn’t want to add something that’s not allowed.

    I’m adding a settings-page to the plugin, where the user can check which tasks he/she wants to run when the plugin is activated. And here I wanted to add the “Update WP to x.xx” if there was an update available.

    But I don’t know – it was just a thought ??

    Best regards
    Aris Kuckovic

    I suggest you ask the plugin review team. Since you already have a plugin in the repo you already know their email address better than I do ??

    Thread Starter kuckovic

    (@kuckovic)

    Hi Tor-Bj?rn,

    You’re right ??
    I will post their reply in here, for future issues on this matter.

    Thanks, guys!

    Best regards
    Aris Kuckovic

    Thread Starter kuckovic

    (@kuckovic)

    UPDATE:

    Otto from the review team wrote this:

    It’s not disallowed, as such. Never seen one do it, but we have some plugins that make WP core shift into beta test mode, so there’s plugins that do that kind of thing already.

    So it is allowed to be done.
    Furthermore, the users have the option to not update core, if they want that.
    Thanks for all the help ??

    – Aris Kuckovic

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Upgrade core through plugin?’ is closed to new replies.