Automattic\WooCommerce\Internal\Admin\Orders

ListTable::get_columns()publicWC 1.0

Get list columns.

Method of the class: ListTable{}

Return

Array.

Usage

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

ListTable::get_columns() code WC 8.7.0

public function get_columns() {
	/**
	 * Filters the list of columns.
	 *
	 * @param array $columns List of sortable columns.
	 *
	 * @since 7.3.0
	 */
	return apply_filters(
		'woocommerce_' . $this->order_type . '_list_table_columns',
		array(
			'cb'               => '<input type="checkbox" />',
			'order_number'     => esc_html__( 'Order', 'woocommerce' ),
			'order_date'       => esc_html__( 'Date', 'woocommerce' ),
			'order_status'     => esc_html__( 'Status', 'woocommerce' ),
			'billing_address'  => esc_html__( 'Billing', 'woocommerce' ),
			'shipping_address' => esc_html__( 'Ship to', 'woocommerce' ),
			'order_total'      => esc_html__( 'Total', 'woocommerce' ),
			'wc_actions'       => esc_html__( 'Actions', 'woocommerce' ),
		)
	);
}