wppaste
WordPress

apply_filters( 'admin_comment_types_dropdown', string[] $comment_types )

Since
2.7.0
Filters the comment types shown in the drop-down menu on the Comments list table.

Compatibility

WordPress
since 2.7.0
  • 6.7.7
  • 6.8.8
  • 6.9.7
  • 7.0.4
  • 7.1.0

Present in every tracked release (6.7.7 to 7.1.0).

Parameters

$comment_typesstring[]
Array of comment type labels keyed by their name.

Where this hook fires · 1

  • wp-admin/includes/class-wp-comments-list-table.php:510WP_Comments_List_Table::comment_type_dropdown()

Source code

		 * Filters the comment types shown in the drop-down menu on the Comments list table.		 *		 * @since 2.7.0		 *		 * @param string[] $comment_types Array of comment type labels keyed by their name.		 */		$comment_types = apply_filters(			'admin_comment_types_dropdown',			array(				'comment' => __( 'Comments' ),				'pings'   => __( 'Pings' ),			)		);

Changelog

Introduced in 2.7.0. Unchanged from 6.7.7 through 7.1.0.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 7.1.0

Signature, return type and hooks compared across 5 parsed releases.

About this page

Parsed data
Generated from the wordpress-develop 6.9.7 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.