apply_filters( ‘flush_rewrite_rules_hard’, bool $hard )

In this article

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

if ( ! $hard || ! apply_filters( 'flush_rewrite_rules_hard', true ) ) {

Changelog

VersionDescription
3.7.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.