apply_filters( ‘comments_rewrite_rules’, string[] $comments_rewrite )

In this article

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

$comments_rewrite = apply_filters( 'comments_rewrite_rules', $comments_rewrite );

Changelog

VersionDescription
1.5.0Introduced.

User Contributed Notes

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