WordPress at Your Fingertips
function is not described

WP_Privacy_Requests_Table::get_sortable_columns() protected WP 4.9.6

Get a list of sortable columns.

{} It's a method of the class: WP_Privacy_Requests_Table{}

No Hooks.

Return

Array. Default sortable columns.

Usage

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

Changelog

Since 4.9.6 Introduced.

Code of WP_Privacy_Requests_Table::get_sortable_columns() WP 5.8.2

protected function get_sortable_columns() {
	/*
	 * The initial sorting is by 'Requested' (post_date) and descending.
	 * With initial sorting, the first click on 'Requested' should be ascending.
	 * With 'Requester' sorting active, the next click on 'Requested' should be descending.
	 */
	$desc_first = isset( $_GET['orderby'] );

	return array(
		'email'             => 'requester',
		'created_timestamp' => array( 'requested', $desc_first ),
	);
}