• [ Moderator note: moved to Fixing WordPress. Please do not use Developing With WordPress for these topics. ]

    Hello everyone
    Is it possible, in any way, to update WP core, theme, plugins, programmatically, for example by performing a GET to an URL made like this:
    http://www.example.com/?update_plugins=true
    Mu problem is that I’m managing a lot of sites and I’m using InfiniteWP for updates, but I’d like to use a script of my own to perform these operations.

    Thanks in advance for your suggestions

Viewing 1 replies (of 1 total)
  • You should check out WP CLI.

    With it you can run this from the command line to update all plugins:

    wp plugin update --all
    

    There’s equivalent commands for Core and Themes, and you can update individual plugins and themes too.

    • This reply was modified 6 years, 9 months ago by Jacob Peattie.
Viewing 1 replies (of 1 total)
  • The topic ‘Programmatically update WP’ is closed to new replies.