AdminPageFrameworkLoader_Utility::isSilentMode PHP Méthode

isSilentMode() public static méthode

Checks if the loader runs on the silent mode or not.
public static isSilentMode ( ) : boolean
Résultat boolean
    public static function isSilentMode()
    {
        return defined('APFL_SILENT_MODE') && APFL_SILENT_MODE;
    }

Usage Example

 /**
  * @since       3.7.4
  * @return      boolean
  */
 private function _shouldLoadDemo()
 {
     if (AdminPageFrameworkLoader_Utility::isSilentMode()) {
         return false;
     }
     // Check if the demo is enabled.
     $_oOption = AdminPageFrameworkLoader_Option::getInstance();
     if (!$_oOption->get('enable_admin_pages')) {
         return false;
     }
     if (!$_oOption->get('enable_demo')) {
         $this->_setPointerToolTips();
         return false;
     }
     return true;
 }
All Usage Examples Of AdminPageFrameworkLoader_Utility::isSilentMode
AdminPageFrameworkLoader_Utility