WP_Media_List_Table::get_sortable_columns(): array

In this article

Return

array

Source

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' ),
	);
}

User Contributed Notes

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