---
updatedAt: 2025-05-15T13:34:12.000Z
agentTools:
  projectIndex: https://docs.sequra.com/llms.txt
---

# 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

```php
add_filter('woocommerce_get_return_url', function($url, $order){
  return 'https://your.awesome.url.com'; // Set your custom value.
}, 10, 2);
```