Last active
March 16, 2021 15:07
-
-
Save hirozed/097b196e6c9f4b4eac93bf782fc77716 to your computer and use it in GitHub Desktop.
WP CLI Media Regenerate
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 media regenerate $(wp post list --format=ids --post_type=attachment --post_mime_type=image/jpeg --year=2020 --url=[url]) --only-missing --url=[url] | |
//BU Version | |
sudo -u wpcms bash | |
wp media regenerate $(wp post list --format=ids --post_type=attachment --post_mime_type=image/jpeg --year=2020 --monthnum=07 --url=https://www.bu.edu/) --yes --only-missing --url=https://www.bu.edu |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment