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).


Top ↑

Parameters

$hard

(bool)Whether to flush rewrite rules "hard". Default true.


Top ↑

Source

File: wp-includes/class-wp-rewrite.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.7.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.