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

weglot_replace_weglot_menu

This filter allow to modify the content before we add the switcher(s)

The filter receives the page HTML (a string) before Weglot adds its switcher(s), and must return it.

add_filter( 'weglot_replace_weglot_menu', 'custom_weglot_replace_weglot_menu' );
function custom_weglot_replace_weglot_menu( $html ) {
    // Edit the HTML here.
    return $html;
}

Last updated