public static function isCurrentPostTypeIn($asPostTypes) { $_aPostTypes = self::getAsArray($asPostTypes); if (empty($_aPostTypes)) { return true; } return in_array(self::getCurrentPostType(), $_aPostTypes); }