Filters whether a “hard” rewrite rule flush should be performed when requested.
A "hard" flush updates .htaccess (Apache) or web.config (IIS).
$hardbool
if ( ! $hard || ! apply_filters( 'flush_rewrite_rules_hard', true ) ) {
| Version | Description |
|---|---|
| 3.7.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/flush_rewrite_rules_hard