Links

weglot_replace_weglot_menu

This filter allow to modify the content before we add the switcher(s)
add_filter( 'weglot_replace_weglot_menu', $dom );