WordPress Hooks Explorer

Listing all hooks extracted WordPress Core

Details about rewrite_rules

Back to home


Filename Hook Type Line Number PHP Doc
wp-includes/class-wp-rewrite.php apply_filters_deprecated 1589 /**
* Filters the list of rewrite rules formatted for output to an .htaccess file.
* @since 1.5.0
* @deprecated 1.5.0 Use the {@see 'mod_rewrite_rules'} filter instead.
* @param string $rules mod_rewrite Rewrite rules formatted for .htaccess.

Hook Parameters

Parameter Type Name Description
string[] $rules The compiled array of rewrite rules, keyed by their regex pattern.