public static function getType($type = null) { if (is_null(self::$_types)) { self::$_types = json_decode(json_encode((array) Mage::getConfig()->getNode('wordpress/post/types')), true); } if (!$type) { return self::$_types; } return isset(self::$_types[$type]) ? self::$_types[$type] : false; }