WC_Order::get_edit_order_url()publicWC 3.3.0

Get's the URL to edit the order in the backend.

Method of the class: WC_Order{}

Hooks from the method

Return

String.

Usage

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

Changelog

Since 3.3.0 Introduced.

WC_Order::get_edit_order_url() code WC 8.7.0

public function get_edit_order_url() {
	$edit_url = \Automattic\WooCommerce\Utilities\OrderUtil::get_order_admin_edit_url( $this->get_id() );
	/**
	 * Filter the URL to edit the order in the backend.
	 *
	 * @since 3.3.0
	 */
	return apply_filters( 'woocommerce_get_edit_order_url', $edit_url, $this );
}