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

# weglot\_render\_dom

This filter allow to modify the translated content after putting meta and replace link.

The filter receives the translated page HTML (a string) once the meta tags and links have been rewritten, and must return it.

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