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

weglot_render_default_button

This filter allows you to modifiy the content after the default switcher is added

The filter receives the page HTML (a string) once the default switcher has been added, and must return it.

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

Last updated