Created
December 16, 2015 01:48
-
-
Save rorymcdaniel/a4fb86b413f4cecd8f15 to your computer and use it in GitHub Desktop.
Bash script that will regenerate all images for all sites in a WordPress multisite network
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
#!/bin/bash | |
for site in `wp site list --field=url`; do | |
wp media regenerate --yes --url=$site | |
done | |
~ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am a new one to this ssh thing and WP CLI too.
can you provide an example too?
Thanks in advanced :)