Automattic\WooCommerce\Internal\Admin\Orders

PageController::setup_action_list_orders()privateWC 1.0

Handles initialization of the orders list table.

Method of the class: PageController{}

No Hooks.

Return

null. Nothing (null).

Usage

// private - for code of main (parent) class only
$result = $this->setup_action_list_orders(): void;

PageController::setup_action_list_orders() code 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();
}