morganestes
8/11/2017 - 7:51 PM

Flush rewrite rules for all sites in a network

Flush rewrite rules for all sites in a network

#!/bin/sh
for site_url in $(wp site list --field=url); do wp rewrite flush --url=${site_url}; done