Skip to content

Instantly share code, notes, and snippets.

@jjeaton
Created July 27, 2016 19:50
Show Gist options
  • Save jjeaton/625fbea16af4000d04d7f6fcf05e4f59 to your computer and use it in GitHub Desktop.
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.
# 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