WC_Order::get_view_order_urlpublicWC 1.0

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

Method of the class: WC_Order{}

Hooks from the method

Returns

String.

Usage

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

WC_Order::get_view_order_url() code WC 10.5.0

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 );
}