$value) { self::$CSRFVars[$key] = $value; } } } else { self::$CSRFVars = array(); } } return self::$CSRFVars; } /** * Stores all CSRF vars * * @param array $CSRFVars holds all CSRF key val * @return void */ private static function saveCSRFVars($CSRFVars) { $contents = DupLiteSnapJsonU::wp_json_encode($CSRFVars); $filePath = self::getFilePath(); file_put_contents($filePath, $contents); } }