WP_Privacy_Requests_Table::get_sortable_columns() – Get a list of sortable columns.

You appear to be a bot. Output may be restricted

Description

Get a list of sortable columns.

Usage

$array = WP_Privacy_Requests_Table::get_sortable_columns();

Parameters

Returns

array Default sortable columns.

Source

File name: wordpress/wp-admin/includes/class-wp-privacy-requests-table.php
Lines:

1 to 13 of 13
  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 ),
    );
  }
 

 View on GitHub View on Trac