Last active
August 1, 2021 15:04
-
-
Save deckerweb/0b14eebb21f9b0c23049f44146bbb15b to your computer and use it in GitHub Desktop.
Unload Elementor Textdomain -- below Code Snippet should go into "Code Snippets" plugin at best (please avoid functions.php or similar hacks)!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** Do NOT include the opening php tag */ | |
add_action( 'plugins_loaded', 'ddw_unload_elementor_textdomain' ); | |
/** | |
* Unload Textdomain for "Elementor" and "Elementor Pro" plugins. | |
* (Comment functions out for those not wanted to unload.) | |
* | |
* @author David Decker - DECKERWEB | |
* @link https://gist.github.com/deckerweb/0b14eebb21f9b0c23049f44146bbb15b | |
*/ | |
function ddw_unload_elementor_textdomain() { | |
unload_textdomain( 'elementor' ); | |
unload_textdomain( 'elementor-pro' ); | |
} // end function |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment