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

# weglot\_replace\_div\_id

This filter allow you to get the translated content after we have replace the \<div id="weglot\_here">\</div> with the switcher

The filter receives the page HTML (a string) once every `<div id="weglot_here"></div>` has been replaced by the language switcher, and must return it.

```php
add_filter( 'weglot_replace_div_id', 'custom_weglot_replace_div_id' );
function custom_weglot_replace_div_id( $html ) {
    // Edit the HTML here.
    return $html;
}
```
