Created
May 6, 2020 13:19
-
-
Save prasadnevase/c78431aa719e9b2b99193563e44ae6f2 to your computer and use it in GitHub Desktop.
Bulk update same featured image to all posts
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 list --post_type=post --format=ids | xargs -0 -d ' ' -I % wp post meta add % _thumbnail_id <thumb_id> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment