> For the complete documentation index, see [llms.txt](https://docs.yaycommerce.com/yaycurrency/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.yaycommerce.com/yaycurrency/configurations/display-options/use-params-on-url.md).

# Use params on URL

Instead of having to change currencies by choosing from a dropdown list, you can change them on the URL by changing the currency code.

eg: {your-site-url}.com/?yay-currency=EUR. You can convert to USD currency by replacing EUR with USD.

<figure><img src="https://2217518750-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M_yR1oHovFi42XBPZIi%2Fuploads%2FOIrblfOomiosktmHjsyC%2F2023-06-07_14-28-38.png?alt=media&amp;token=7d8e7795-e4ac-4656-bae6-994c60e22ccf" alt=""><figcaption></figcaption></figure>

To do this, you can add the following code to [Code Snippets](https://wordpress.org/plugins/code-snippets/) or to the file `functions.php` of your store theme.&#x20;

{% hint style="info" %}
It is recommended to add it to`functions.php` of child theme so that it will be preserved when you update the theme.
{% endhint %}

```
add_filter('yay_currency_use_params', 'yay_currency_use_params', 10,1);
function yay_currency_use_params( $use_param ) {
    return true;
}
```

In case you don't want to use this parameter: ?yay-currency. You can use this hook to rename it: yay\_currency\_param\_name&#x20;

<pre><code><strong>add_filter( 'yay_currency_param_name',  'custom_yay_currency_param_name' );
</strong>function custom_yay_currency_param_name( $param_name ) {
   $param_name = 'your_change';
   return $param_name;
}
</code></pre>
