Automattic\WooCommerce\Internal\Admin\Orders

PageController::setup_action_list_orders()privateWC 1.0

Handles initialization of the orders list table.

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

Хуков нет.

Возвращает

null. Ничего (null).

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

// private - только в коде основоного (родительского) класса
$result = $this->setup_action_list_orders(): void;

Код PageController::setup_action_list_orders() WC 8.7.0

private function setup_action_list_orders(): void {
	$this->orders_table = wc_get_container()->get( ListTable::class );
	$this->orders_table->setup(
		array(
			'order_type' => $this->order_type,
		)
	);

	if ( $this->orders_table->current_action() ) {
		$this->orders_table->handle_bulk_actions();
	}

	$this->strip_http_referer();
}