comment_status_links WordPress Filter Hook

The comment_status_links hook is used to add links to the comment status change requests in the WordPress comment moderation page. This hook is useful for plugins that want to add their own comment status change links.

apply_filters( 'comment_status_links', string[] $status_links ) #

Filters the comment status links.


Parameters

$status_links

(string[])An associative array of fully-formed comment status links. Includes 'All', 'Mine', 'Pending', 'Approved', 'Spam', and 'Trash'.


Top ↑

Source

File: wp-admin/includes/class-wp-comments-list-table.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
5.1.0The 'Mine' link was added.
2.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.