W3cubDocs

/WordPress

WP_Posts_List_Table::get_sortable_columns()

Return

(array)

Source

File: wp-admin/includes/class-wp-posts-list-table.php

protected function get_sortable_columns() {
		return array(
			'title'    => 'title',
			'parent'   => 'parent',
			'comments' => 'comment_count',
			'date'     => array( 'date', true ),
		);
	}

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_posts_list_table/get_sortable_columns