Automattic\WooCommerce\Internal\Admin\Orders

PageController::setup_action_edit_order()privateWC 1.0

Handles initialization of the orders edit form.

Method of the class: PageController{}

No Hooks.

Return

null. Nothing (null).

Usage

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

PageController::setup_action_edit_order() code WC 8.7.0

private function setup_action_edit_order(): void {
	global $theorder;
	$this->order = wc_get_order( absint( isset( $_GET['id'] ) ? $_GET['id'] : 0 ) );
	$this->verify_edit_permission();
	$this->handle_edit_lock();
	$theorder = $this->order;

	$this->prepare_order_edit_form();
}