alleyinteractive/wp-multisite-flush-rewrites

Flush rewrite rules on a WordPress multisite.

1.0.1 2025-08-26 19:46 UTC

This package is auto-updated.

Last update: 2025-08-26 19:46:21 UTC


README

Testing Suite

Flush rewrite rules easily for all sites on a WordPress multisite.

Installation

You can install the package via Composer:

composer require alleyinteractive/wp-multisite-flush-rewrites

Usage

Activate the plugin in WordPress and flush the network's rewrite rules in the Network Admin Panel:

Screenshot of plugin

You can also flush the rewrite rules with WP-CLI:

wp multisite-flush-rewrites
wp multisite-flush-rewrites --network-id=2

The plugin flushes the rewrite rules for all non-archived sites in a network by making an admin-ajax.php request to each site. This ensures that the rewrite rules are properly refreshed and any changes are applied across the network.

Changelog

Please see CHANGELOG for more information on what has changed recently.

Credits

This project is actively maintained by Alley Interactive. Like what you see? Come work with us.

License

The GNU General Public License (GPL) license. Please see License File for more information.