> 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_exclude_urls.md).

# weglot\_exclude\_urls

This filter allow you to modifiy the list of your excluded url.

The filter receives the list of excluded URLs and must return it. Each entry is an array: a `Weglot\Util\Regex` matched against the URL path, then the excluded languages (`null` for all languages).

```php
add_filter( 'weglot_exclude_urls', 'custom_weglot_exclude_urls' );
function custom_weglot_exclude_urls( $exclude_urls ) {
    $exclude_urls[] = array( new \Weglot\Util\Regex( \Weglot\Util\Regex\RegexEnum::CONTAIN, '/members/' ), null );
    return $exclude_urls;
}
```
