How To Flush Rewrite Rules For All Sites on Multisite Network

Hello,

After updating plugins on multisite networks it is not uncommon for rewrite rules to be broken on many sites on the network.

Fixing the issue requires visiting each site and flushing the rules.

I am looking for a solution that will flush all the rules on all sites across the network.

These threads are relevant, but I am seeking a recommendation, code snippet or plugin to accomplish this task.

https://wordpress.org/support/topic/force-rewrite-rules-when-updating-in-multisite

http://shibashake.com/wordpress-theme/how-to-flush-permalink-rules-with-flush_rules

http://wordpress.stackexchange.com/questions/130423/add-rewrite-rule-not-working-in-wordpress-multisite

Any help appreciated.

Thanks,
Phil D