Automattic\WooCommerce\Internal\Admin\Orders

PageController::output()publicWC 1.0

Outputs content for the current orders screen.

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

Хуков нет.

Возвращает

null. Ничего.

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

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

Код PageController::output() WC 6.9.4

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;
	}
}