> For the complete documentation index, see [llms.txt](https://developers.weglot.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers.weglot.com/wordpress/use-cases/deactivate-weglot-on-elementor.md).

# Deactivate Weglot on Elementor

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:

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