For the complete documentation index, see llms.txt. This page is also available as Markdown.

weglot_generate_switcher_from_dom

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

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