WC_Order::get_view_order_url()publicWC 1.0

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

Method of the class: WC_Order{}

Hooks from the method

Return

String.

Usage

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

WC_Order::get_view_order_url() code WC 9.6.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 );
}