mod_rewrite_rules filter-hookWP 1.5.0

Filters the list of rewrite rules formatted for output to an .htaccess file.

Usage

add_filter( 'mod_rewrite_rules', 'wp_kama_mod_rewrite_rules_filter' );

/**
 * Function for `mod_rewrite_rules` filter-hook.
 * 
 * @param string $rules mod_rewrite Rewrite rules formatted for .htaccess.
 *
 * @return string
 */
function wp_kama_mod_rewrite_rules_filter( $rules ){

	// filter...
	return $rules;
}
$rules(string)
mod_rewrite Rewrite rules formatted for .htaccess.

Changelog

Since 1.5.0 Introduced.

Where the hook is called

WP_Rewrite::mod_rewrite_rules()
mod_rewrite_rules
wp-includes/class-wp-rewrite.php 1601
$rules = apply_filters( 'mod_rewrite_rules', $rules );

Where the hook is used in WordPress

Usage not found.