Created
May 11, 2020 13:48
-
-
Save mustardBees/4cce1f85f0cdcccda278b0acc94490b8 to your computer and use it in GitHub Desktop.
WordPress clear oEmbed cache (YouTube etc.) for all posts/pages using WP-CLI
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,page --field=ID | xargs -n1 -I % wp embed cache clear % |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you!