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

Deactivate Weglot on Elementor

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

Weglot also runs inside Elementor's editor and preview (translating content and injecting switchers), which is not always desirable. To disable Weglot while Elementor is loaded, hook elementor/init and turn translation off:

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

Last updated