Automattic\WooCommerce\Internal\Admin\Orders

ListTable::get_sortable_columns()publicWC 1.0

Defines the default sortable columns.

Method of the class: ListTable{}

Return

String[].

Usage

$ListTable = new ListTable();
$ListTable->get_sortable_columns();

ListTable::get_sortable_columns() code WC 8.7.0

public function get_sortable_columns() {
	/**
	 * Filters the list of sortable columns.
	 *
	 * @param array $sortable_columns List of sortable columns.
	 *
	 * @since 7.3.0
	 */
	return apply_filters(
		'woocommerce_' . $this->order_type . '_list_table_sortable_columns',
		array(
			'order_number' => 'ID',
			'order_date'   => 'date',
			'order_total'  => 'order_total',
		)
	);
}