woocommerce_review_order_url filter-hookWC 10.8.0

Filter the Review Order URL that the review-request email links to.

Usage

add_filter( 'woocommerce_review_order_url', 'wp_kama_woocommerce_review_order_url_filter', 10, 2 );

/**
 * Function for `woocommerce_review_order_url` filter-hook.
 * 
 * @param string   $url   The review-order URL.
 * @param WC_Order $order The order object.
 *
 * @return string
 */
function wp_kama_woocommerce_review_order_url_filter( $url, $order ){

	// filter...
	return $url;
}
$url(string)
The review-order URL.
$order(WC_Order)
The order object.

Changelog

Since 10.8.0 Introduced.

Where the hook is called

Endpoint::get_url()
woocommerce_review_order_url
woocommerce/src/Internal/OrderReviews/Endpoint.php 656
return (string) apply_filters( 'woocommerce_review_order_url', $url, $order );

Where the hook is used in WooCommerce

Usage not found.