morganestes
8/11/2017 - 8:05 PM

Regenerate thumbnails for all sites in a WordPress network

Regenerate thumbnails for all sites in a WordPress network

#!/bin/sh
for site_url in $(wp site list --field=url); do wp media regenerate --only-missing --yes --url=${site_url}; done