woocommerce_get_return_url
Hook Filter
Allow modifying the return URL after payment has been processed
Description
Allow modifying the return URL after payment has been processed
| Parameter | Type | Description |
|---|---|---|
$return_url | string | Return URL |
$order | WC_Order | WooCommerce order |
Changelog
| Version | Description |
|---|---|
| 2.0.0 | Introduced |
Usage Example
add_filter('woocommerce_get_return_url', function($url, $order){
return 'https://your.awesome.url.com'; // Set your custom value.
}, 10, 2);Updated 6 months ago