Automattic\WooCommerce\Utilities
OrderUtil::get_order_admin_edit_url()
Helper method to generate admin url for an order.
Method of the class: OrderUtil{}
No Hooks.
Return
String
. Admin url for an order.
Usage
$result = OrderUtil::get_order_admin_edit_url( $order_id ) : string;
- $order_id(int) (required)
- Order ID.
OrderUtil::get_order_admin_edit_url() OrderUtil::get order admin edit url code WC 9.4.2
public static function get_order_admin_edit_url( int $order_id ) : string { return wc_get_container()->get( PageController::class )->get_edit_url( $order_id ); }