You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, was wondering if it'd be possible for the CLI to trigger plugin-specific db updates that normally are prompted on the admin UI when you update a plugin that requires database modifications with the new version, ie: ACF.
Ideally alongside a wp core update-db after upgrading WP one could run either a global wp plugin update-db to run all (or specific) plugin's hooks for db update similarly to how wp plugin update works today.
The text was updated successfully, but these errors were encountered:
The problem with such a feature is that there is no central way and no hooks for plugins to set up these kind of DB update strategy. That means ACF, WooCommerce, EDD, etc. all do their own thing. WordPress / WP-CLI don't know whether a plugin does do something with the database.
The only way would be for these plugins to offer their own commands for that.
Hi, was wondering if it'd be possible for the CLI to trigger plugin-specific db updates that normally are prompted on the admin UI when you update a plugin that requires database modifications with the new version, ie: ACF.
Ideally alongside a
wp core update-db
after upgrading WP one could run either a globalwp plugin update-db
to run all (or specific) plugin's hooks for db update similarly to howwp plugin update
works today.The text was updated successfully, but these errors were encountered: