Deactivate Weglot on Elementor

Deactivate Weglot (translate and add swtcher(s)) when you're on elementor webview

function weglot_deactivate_elementor() {
    add_filter( 'weglot_active_translation', '__return_false' );
}
add_action( 'elementor/init', 'weglot_deactivate_elementor' );

Last updated