get_widget_class_map(); // Bail when we are not mapped to fix this type of widget. if ( ! isset( $out['type'], $class_map[ $out['type'] ] ) ) { return $out; } $out['type'] = $class_map[ $out['type'] ]; return $out; } }