comments_rewrite_rules WordPress Filter Hook

The comments_rewrite_rules hook is used to filter the list ofrewrite rules created for the comments feed.

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/.


Top ↑

Parameters

$comments_rewrite

(string[])Array of rewrite rules for the site-wide comments feeds, keyed by their regex pattern.


Top ↑

Source

File: wp-includes/class-wp-rewrite.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
1.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.