Submissions_List_Table::build_sortable_columns()

Returns the sortable columns for the list table.

Description

Return

(array) Sortable columns as <code>$slug => $orderby</code> pairs. $orderby can be a plain string or an array with the first element being the field slug and the second being true to make the initial sorting order descending.

Source

File: src/db-objects/submissions/submissions-list-table.php

	protected function build_sortable_columns() {
		$sortable_columns = parent::build_sortable_columns();

		$sortable_columns['timestamp'] = array( 'timestamp', true );

		/**
		 * Filters the submission sortable columns.
		 *
		 * @since 1.0.0
		 *
		 * @param array $sortable_columns Associative array of `$column_slug => $column_sort_data` pairs.
		 */
		return apply_filters( "{$this->manager->get_prefix()}submission_admin_sortable_columns", $sortable_columns );
	}

Changelog

Changelog
Version Description
1.0.0 Introduced.