/** * Handle loading the CSS and JS assets. * * In addition to core functionality, handle Style Generator CSS, loading on login pages, * and optional IE Fix * */ function loadAssets() { parent::loadAssets(); if (!is_admin() && ($this->settings->op('wpmega-load-on-login') || !in_array($GLOBALS['pagenow'], array('wp-login.php', 'wp-register.php')))) { //CSS in HEAD add_action('wp_head', array($this, 'insertCSS'), 100); //IE Fix if ($this->settings->op('wpmega-iefix')) { add_action('wp_head', array($this, 'ieFix')); } //You can safely disable this if you are including it elsewhere } }