https://github.com/alleyinteractive/wp-multisite-flush-rewrites
Flush rewrite rules on a WordPress multisite.
https://github.com/alleyinteractive/wp-multisite-flush-rewrites
wordpress wordpress-plugin
Last synced: 5 months ago
JSON representation
Flush rewrite rules on a WordPress multisite.
- Host: GitHub
- URL: https://github.com/alleyinteractive/wp-multisite-flush-rewrites
- Owner: alleyinteractive
- License: gpl-2.0
- Created: 2025-08-21T13:46:03.000Z (11 months ago)
- Default Branch: develop
- Last Pushed: 2025-10-21T17:21:16.000Z (8 months ago)
- Last Synced: 2025-10-21T19:24:15.270Z (8 months ago)
- Topics: wordpress, wordpress-plugin
- Language: PHP
- Homepage:
- Size: 2.82 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# WP Multisite Flush Rewrites
[](https://github.com/alleyinteractive/wp-multisite-flush-rewrites/actions/workflows/all-pr-tests.yml)
Flush rewrite rules easily for all sites on a WordPress multisite.
## Installation
You can install the package via Composer:
```bash
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:

You can also flush the rewrite rules with WP-CLI:
```bash
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](CHANGELOG.md) for more information on what has changed recently.
## Credits
This project is actively maintained by [Alley
Interactive](https://github.com/alleyinteractive). Like what you see? [Come work
with us](https://alley.com/careers/).
- [Sean Fisher](https://github.com/srtfisher)
- [All Contributors](../../contributors)
## License
The GNU General Public License (GPL) license. Please see [License File](LICENSE) for more information.