Thanks to visit codestin.com
Credit goes to developer.wordpress.org

WP_Comments_List_Table::comment_status_dropdown( string $comment_type )

In this article

Displays a comment status drop-down for filtering on the Comments list table.

Parameters

$comment_typestringrequired
The current comment type slug.

Source

 * @return string|false Current action or false if none.
 */
public function current_action() {
	if ( isset( $_REQUEST['delete_all'] ) || isset( $_REQUEST['delete_all2'] ) ) {
		return 'delete_all';
	}

	return parent::current_action();
}

/**
 * Gets the list of columns.
 *
 * @global int $post_id The ID of the post comments are being shown for.
 *
 * @return string[] Array of column titles keyed by their column name.
 */
public function get_columns() {
	global $post_id;

	$columns = array();

	if ( $this->checkbox ) {
		$columns['cb'] = '<input type="checkbox" />';
	}

	$columns['author']  = __( 'Author' );
	$columns['comment'] = _x( 'Comment', 'column name' );

	if ( ! $post_id ) {
		/* translators: Column name or table row header. */
		$columns['response'] = __( 'In response to' );
	}

	$columns['date'] = _x( 'Submitted on', 'column name' );

	return $columns;
}

/**
 * Displays a comment type drop-down for filtering on the Comments list table.

Changelog

VersionDescription
5.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.