> For the complete documentation index, see [llms.txt](https://developers.weglot.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers.weglot.com/cms/wordpress/helpers-functions-1/weglot_ajax_replace_urls.md).

# weglot\_ajax\_replace\_urls

When Weglot translate json content, we don't translate all entry. With this filter you can modifiy the keys we translate for url.

by default we translate this keys :

```php
[ 'redirecturl', 'url', 'link' ]
```

The filter receives this array and must return it.

```php
add_filter( 'weglot_ajax_replace_urls', 'custom_weglot_ajax_replace_urls' );
function custom_weglot_ajax_replace_urls( $keys ) {
    $keys[] = 'checkout_url';
    return $keys;
}
```
