> 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/use-cases/lang-attribute.md).

# Lang attribute

You can modify your own `lang` attribute (or any other element in the DOM) using the `weglot_render_dom` filter.

```php
add_filter( 'weglot_render_dom', 'prefix_weglot_render_dom' );
function prefix_weglot_render_dom( $dom ) {
	$dom = str_replace( 'lang="en-US"', 'lang="en-US-wg"', $dom );
	return $dom;
}
```
