On this page
apply_filters( 'comments_rewrite_rules', string[] $comments_rewrite )
Filters rewrite rules used for comment feed archives.
Description
Likely comments feed archives include /comments/feed/ and /comments/feed/atom/.
Parameters
$comments_rewritestring[]-
Array of rewrite rules for the site-wide comments feeds, keyed by their regex pattern.
Source
File: wp-includes/class-wp-rewrite.php. View all references
$comments_rewrite = apply_filters( 'comments_rewrite_rules', $comments_rewrite );
Related
Used By
| Used By | Description |
|---|---|
| WP_Rewrite::rewrite_rules() wp-includes/class-wp-rewrite.php | Constructs rewrite matches and queries from permalink structure. |
Changelog
| Version | Description |
|---|---|
| 1.5.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/comments_rewrite_rules