Automattic\WooCommerce\Internal\Admin\Orders
ListTable::get_sortable_columns()
Defines the default sortable columns.
Method of the class: ListTable{}
Hooks from the method
Return
String[]
.
Usage
$ListTable = new ListTable(); $ListTable->get_sortable_columns();
ListTable::get_sortable_columns() ListTable::get sortable columns code WC 8.6.1
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', ) ); }