Automattic\WooCommerce\Internal\Admin\Orders

ListTable::get_columns()publicWC 1.0

Get list columns.

Метод класса: ListTable{}

Хуки из метода

Возвращает

Массив.

Использование

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

Код ListTable::get_columns() WC 8.9.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' ),
		)
	);
}