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'.
Source
Changelog
Version | Description |
---|---|
5.1.0 | The 'Mine' link was added. |
2.5.0 | Introduced. |