W3cubDocs

/WordPress

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_typesstring[]
Array of comment type labels keyed by their name.

Source

$comment_types = apply_filters(
	'admin_comment_types_dropdown',
	array(
		'comment' => __( 'Comments' ),
		'pings'   => __( 'Pings' ),
	)
);

Changelog

Version Description
2.7.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/admin_comment_types_dropdown