/** * {@inheritdoc} */ public function fetchAllCurrentlyKnownOptionNamesToValues() { $allOptions = $this->_wpFunctions->wp_load_alloptions(); $allOptionNames = array_keys($allOptions); $tubePressOptionNames = array_filter($allOptionNames, array($this, '__onlyPrefixedWithTubePress')); $toReturn = array_intersect_key($allOptions, array_flip($tubePressOptionNames)); foreach ($toReturn as $prefixedName => $value) { $unprefixedName = str_replace(self::$_optionPrefix, '', $prefixedName); $toReturn[$unprefixedName] = $toReturn[$prefixedName]; unset($toReturn[$prefixedName]); } return $toReturn; }