WP_Privacy_Requests_Table::get_sortable_columns()

Get a list of sortable columns.


Description Description


Return Return

(array) Default sortable columns.


Top ↑

Source Source

File: wp-admin/includes/user.php

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

Top ↑

Changelog Changelog

Changelog
Version Description
4.9.6 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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