Automattic\WooCommerce\Internal\Admin\Orders

PageController::setup_action_edit_order()privateWC 1.0

Handles initialization of the orders edit form.

{} It's a method of the class: PageController{}

No Hooks.

Return

null. Nothing.

Usage

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

Code of PageController::setup_action_edit_order() WC 7.1.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();
	$theorder = $this->order;
}