WordPress at Your Fingertips
filter is not described

flush_rewrite_rules_hard filter-hook . WP 3.7.0

Filters whether a "hard" rewrite rule flush should be performed when requested.

A "hard" flush updates .htaccess (Apache) or web.config (IIS).


add_filter( 'flush_rewrite_rules_hard', 'filter_function_name_6525' );
function filter_function_name_6525( $hard ){
	// filter...

	return $hard;
Whether to flush rewrite rules "hard".
Default: true

Where the hook is called

wp-includes/class-wp-rewrite.php 1865
if ( ! $hard || ! apply_filters( 'flush_rewrite_rules_hard', true ) ) {

Where in WP core the hook is used WordPress

Usage not found.