WC_Admin_List_Table_Orders::define_columns()publicWC 1.0

Define which columns to show on this screen.

{} It's a method of the class: WC_Admin_List_Table_Orders{}

No Hooks.

Return

Array.

Usage

$WC_Admin_List_Table_Orders = new WC_Admin_List_Table_Orders();
$WC_Admin_List_Table_Orders->define_columns( $columns );
$columns(array) (required)
Existing columns.

Code of WC_Admin_List_Table_Orders::define_columns() WC 6.7.0

public function define_columns( $columns ) {
	$show_columns                     = array();
	$show_columns['cb']               = $columns['cb'];
	$show_columns['order_number']     = __( 'Order', 'woocommerce' );
	$show_columns['order_date']       = __( 'Date', 'woocommerce' );
	$show_columns['order_status']     = __( 'Status', 'woocommerce' );
	$show_columns['billing_address']  = __( 'Billing', 'woocommerce' );
	$show_columns['shipping_address'] = __( 'Ship to', 'woocommerce' );
	$show_columns['order_total']      = __( 'Total', 'woocommerce' );
	$show_columns['wc_actions']       = __( 'Actions', 'woocommerce' );

	wp_enqueue_script( 'wc-orders' );

	return $show_columns;
}