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.


Top ↑

Source

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

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.7.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.