Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Not Load CSS and don't promote for WPML Plugin in functions file
<?php
//Not load JS and CSS
define('ICL_DONT_LOAD_NAVIGATION_CSS', true);
define('ICL_DONT_LOAD_LANGUAGE_SELECTOR_CSS', true);
define('ICL_DONT_LOAD_LANGUAGES_JS', true);
//Not Load advertising
define("ICL_DONT_PROMOTE", true);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.