mod_rewrite_rules WordPress Filter Hook
The mod_rewrite_rules hook is a WordPress hook that allows you to specify custom rewrite rules for your WordPress site. This hook is called during the WordPress initialization process, so it is available to all WordPress sites.
apply_filters( 'mod_rewrite_rules', string $rules ) #
Filters the list of rewrite rules formatted for output to an .htaccess file.
Parameters
- $rules
(string)mod_rewrite Rewrite rules formatted for .htaccess.
Source
Changelog
Version | Description |
---|---|
1.5.0 | Introduced. |