WordPress at Your Fingertips
function is not described

WC_Order::get_view_order_url() public WC 1.0

Generates a URL to view an order from the my account page.

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

Hooks from the method
Return

String.

Usage

$WC_Order = new WC_Order();
$WC_Order->get_view_order_url();

Code of WC_Order::get_view_order_url() WC 5.7.1

public function get_view_order_url() {
	return apply_filters( 'woocommerce_get_view_order_url', wc_get_endpoint_url( 'view-order', $this->get_id(), wc_get_page_permalink( 'myaccount' ) ), $this );
}