WordPress hook directory
category_rewrite_rules

Description

Applied to the category-related rewrite rules after they are generated.

This description was scraped automatically from the WordPress filter reference or action reference. If it looks like this is the wrong description, please tell me so I can fix my code.

WordPress version history for category_rewrite_rules

This database has information for all major versions from WP 1.2.1 through 5.1.

Version File Line Type
1.5.2 wp-includes/classes.php 1190 View in context filter
2.0 wp-includes/classes.php 1310 View in context filter
2.0.11 wp-includes/classes.php 1354 View in context filter
2.1 wp-includes/rewrite.php 734 View in context filter
2.2 wp-includes/rewrite.php 737 View in context filter
2.3 wp-includes/rewrite.php 773 View in context filter
2.5 wp-includes/rewrite.php 826 View in context filter
2.6 wp-includes/rewrite.php 839 View in context filter
2.7 wp-includes/rewrite.php 1554 View in context filter
2.8 wp-includes/rewrite.php 1565 View in context filter
2.9 wp-includes/rewrite.php 1567 View in context filter
3.0 wp-includes/rewrite.php 1609 View in context filter

Important warning!

This hook does not occur in the most recent version of WordPress (5.1). Do not use it. It is deprecated. You should look at the list of "related hooks" below to see if you can figure out what replaced it.

Related Hooks

We find related hooks using word stems. category_rewrite_rules has 3 significant word stem(s): category, rewrite, rules. Note that some of the hooks below may not appear in all versions of WP.