Automattic\WooCommerce\Internal\Admin\Orders

PageController::output()publicWC 1.0

Outputs content for the current orders screen.

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

No Hooks.

Return

null. Nothing.

Usage

$PageController = new PageController();
$PageController->output(): void;

Code of PageController::output() WC 7.1.0

public function output(): void {
	switch ( $this->current_action ) {
		case 'edit_order':
		case 'new_order':
			if ( ! isset( $this->order_edit_form ) ) {
				$this->order_edit_form = new Edit();
				$this->order_edit_form->setup( $this->order );
			}
			$this->order_edit_form->display();
			break;
		case 'list_orders':
		default:
			$this->orders_table->prepare_items();
			$this->orders_table->display();
			break;
	}
}