WP_Media_List_Table::get_sortable_columns()protectedWP 1.0

Method of the class: WP_Media_List_Table{}

No Hooks.

Return

Array.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_sortable_columns();

WP_Media_List_Table::get_sortable_columns() code WP 6.6.2

protected function get_sortable_columns() {
	return array(
		'title'    => array( 'title', false, _x( 'File', 'column name' ), __( 'Table ordered by File Name.' ) ),
		'author'   => array( 'author', false, __( 'Author' ), __( 'Table ordered by Author.' ) ),
		'parent'   => array( 'parent', false, _x( 'Uploaded to', 'column name' ), __( 'Table ordered by Uploaded To.' ) ),
		'comments' => array( 'comment_count', __( 'Comments' ), false, __( 'Table ordered by Comments.' ) ),
		'date'     => array( 'date', true, __( 'Date' ), __( 'Table ordered by Date.' ), 'desc' ),
	);
}