public function onWpAdminInit() { parent::onWpAdminInit(); // If it's a plugin admin page, we do certain things we don't do anywhere else. if ($this->getIsPage_PluginAdmin()) { //JS color picker for the Bootstrap LESS if ($_GET['page'] == $this->getSubmenuId('bootstrap-less')) { wp_register_style('miniColors', $this->m_sPluginUrl . 'inc/miniColors/jquery.miniColors.css', false, $this->m_sVersion); wp_enqueue_style('miniColors'); wp_register_script('miniColors', $this->m_sPluginUrl . 'inc/miniColors/jquery.miniColors.min.js', false, $this->m_sVersion, true); wp_enqueue_script('miniColors'); } } }