WP_Comments_List_Table::get_sortable_columns
Method of the class: WP_Comments_List_Table{}
No Hooks.
Returns
Array.
Usage
// protected - for code of main (parent) or child class $result = $this->get_sortable_columns();
WP_Comments_List_Table::get_sortable_columns() WP Comments List Table::get sortable columns code WP 6.9.1
protected function get_sortable_columns() {
return array(
'author' => array( 'comment_author', false, __( 'Author' ), __( 'Table ordered by Comment Author.' ) ),
'response' => array( 'comment_post_ID', false, _x( 'In Response To', 'column name' ), __( 'Table ordered by Post Replied To.' ) ),
'date' => 'comment_date',
);
}