Created
July 27, 2016 19:50
-
-
Save jjeaton/625fbea16af4000d04d7f6fcf05e4f59 to your computer and use it in GitHub Desktop.
Sometimes in multisite a plugin can be network deactivated, but was originally active on a single site, so it remains active on that site. This command will ensure that a plugin is deactivated at the network level and on each individual site in the network.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Using disable-emails as an example | |
wp plugin deactivate --network disable-emails && wp site list --field=url | xargs -n1 -I % wp --url=% plugin deactivate disable-emails |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment