Created
March 16, 2021 18:26
-
-
Save prasadnevase/1ae15b0150da324231be79c154cf5019 to your computer and use it in GitHub Desktop.
WP CLI command to update post category of all posts having specific old category
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
wp post update --post_category=sample $(wp post list --cat=1 --format=ids) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment