Automattic\WooCommerce\Internal\Admin\Orders
PageController::setup_action_edit_order()
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() PageController::setup action edit order code WC 9.7.1
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(); }