Created
May 12, 2014 21:22
-
-
Save carstingaxion/209793f90fea5e5ce29f to your computer and use it in GitHub Desktop.
WPML related defaults for functions.php
This file contains hidden or 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
/** WPML - Sitepress Multilingual CMS **/ | |
global $sitepress; | |
// remove language switcher, 'cause it messes with the WP backend styles | |
remove_action('in_admin_header', array($sitepress, 'admin_language_switcher')); | |
// remove meta-generator tag | |
remove_action('wp_head', array($sitepress, 'meta_generator_tag')); | |
// WPML sitepress-multilingual-cms | |
define( 'ICL_DONT_LOAD_LANGUAGE_SELECTOR_CSS' , true); | |
define( 'ICL_DONT_LOAD_LANGUAGES_JS' , true); | |
define( 'ICL_DONT_LOAD_NAVIGATION_CSS' , true); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment