WP_Comments_List_Table::get_columns() WordPress Method
The WP_Comments_List_Table::get_columns() method is used to get the list of columns for the comments list table.
WP_Comments_List_Table::get_columns() #
Return
(array)
Source
File: wp-admin/includes/class-wp-comments-list-table.php
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; }
Expand full source codeCollapse full source codeView on TracView on GitHub