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

# weglot\_render\_switcher\_editor\_button

This filter allow you to modifiy the translated content after the custom switcher is added.

The filter receives the translated page HTML (a string) once the custom switchers have been added, and must return it.

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