apply_filters_deprecated( ‘rewrite_rules’, string $rules )

In this article

This hook has been deprecated. Use the {@see ‘mod_rewrite_rules’} filter instead.

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

Parameters

$rulesstring
mod_rewrite Rewrite rules formatted for .htaccess.

Source

return apply_filters_deprecated( 'rewrite_rules', array( $rules ), '1.5.0', 'mod_rewrite_rules' );

Changelog

VersionDescription
1.5.0Introduced.

User Contributed Notes

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