On this page
apply_filters( 'flush_rewrite_rules_hard', bool $hard )
Filters whether a “hard” rewrite rule flush should be performed when requested.
Description
A "hard" flush updates .htaccess (Apache) or web.config (IIS).
Parameters
$hardbool-
Whether to flush rewrite rules "hard". Default true.
Source
File: wp-includes/class-wp-rewrite.php. View all references
if ( ! $hard || ! apply_filters( 'flush_rewrite_rules_hard', true ) ) {
Related
Used By
| Used By | Description |
|---|---|
| WP_Rewrite::flush_rules() wp-includes/class-wp-rewrite.php | Removes rewrite rules and then recreate rewrite rules. |
Changelog
| Version | Description |
|---|---|
| 3.7.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/flush_rewrite_rules_hard