Automattic\WooCommerce\Utilities

OrderUtil::get_order_admin_new_url()public staticWC 1.0

Helper method to generate admin URL for new order.

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

No Hooks.

Return

String. Link for new order.

Usage

$result = OrderUtil::get_order_admin_new_url() : string;

Code of OrderUtil::get_order_admin_new_url() WC 7.1.0

public static function get_order_admin_new_url() : string {
	return wc_get_container()->get( PageController::class )->get_new_page_url();
}