> 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/wordpress/helpers-functions-1/weglot_generate_switcher_from_dom.md).

# weglot\_generate\_switcher\_from\_dom

Receives the page DOM once Weglot has injected the switcher(s), so you can post-process it.

```php
add_filter( 'weglot_generate_switcher_from_dom', 'custom_weglot_generate_switcher_from_dom' );
function custom_weglot_generate_switcher_from_dom( $dom ) {
    return $dom;
}
```
