Last active
April 5, 2019 19:13
-
-
Save brandoncamenisch/50beae84d7b3cbedeb49 to your computer and use it in GitHub Desktop.
Delete certain post type from network of sites using wp-cli
This file contains 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
wp site list --field=url | while read SITE ; do wp post delete $( wp post list --post_type='vistage_chair' --ids --url=$SITE ) --url=$SITE; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment