public function onnxtAdminMenu() { parent::onnxtAdminMenu(); add_submenu_page(self::ParentMenuId, $this->getSubmenuPageTitle('Bootstrap CSS'), 'Bootstrap CSS', self::ParentPermissions, $this->getSubmenuId('bootstrap-css'), array(&$this, 'onDisplayPlugin')); $this->fixSubmenu(); }
public static function updateOption($insKey, $insValue) { if (self::getOption($insKey) == $insValue) { return true; } $fResult = update_option(self::$OPTION_PREFIX . $insKey, $insValue); if (!$fResult) { self::$m_fUpdateSuccessTracker = false; self::$m_aFailedUpdateOptions[] = self::$OPTION_PREFIX . $insKey; } }
protected function deleteAllPluginDbOptions() { parent::deleteAllPluginDbOptions(); if (!current_user_can('manage_options')) { return; } $oBoostrapLess = new HLT_BootstrapLess(); $oBoostrapLess->processLessOptions('delete'); }