WP_Comments_List_Table::get_columns(): string[]

In this article

Return

string[] Array of column titles keyed by their column name.

Source

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;
}

User Contributed Notes

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