admin_comment_types_dropdown WordPress Filter Hook
The admin_comment_types_dropdown hook is used to add new comment types to the dropdown menu on the comments screen in the WordPress admin area. This hook allows you to add new comment types as well as change the labels for existing comment types.
apply_filters( 'admin_comment_types_dropdown', string[] $comment_types ) #
Filters the comment types shown in the drop-down menu on the Comments list table.
Parameters
- $comment_types
(string[])Array of comment type labels keyed by their name.
Source
Changelog
Version | Description |
---|---|
2.7.0 | Introduced. |