Possible to run database upgrades over WP-CLI?
-
Is it possible run plugin database upgrades over WP-CLI or even a PHP function so that I can run them manually over SSH? I have a number of customers that use Ultimate Member. I do not like having to manually run database upgrades on each site. I would like a way to run the updates in bulk.
I did some poking around
ultimate-member/includes/admin/core/class-admin-upgrade.php
. It looks like all of the code made for to be run over AJAX calls. So I’m thinking it would need a different method for running everything from PHP. Maybe even a new functions, lets saypublic function run_upgrades()
. Thoughts?
- The topic ‘Possible to run database upgrades over WP-CLI?’ is closed to new replies.