flush_rewrite_rules_hard WordPress Filter Hook
This hook is called after a call to the flush_rewrite_rules() function. It is used to force WordPress to immediately update its rewrite rules in the database. This hook is useful when you need to make sure that your rewrite rules are up-to-date after making changes to your site.
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
- $hard
(bool)Whether to flush rewrite rules "hard". Default true.
Source
Changelog
Version | Description |
---|---|
3.7.0 | Introduced. |