import type { BaseTabProps } from "../types";
import { HighlightableField } from "../../components/HighlightableField";
export interface AdvancedTabProps extends BaseTabProps {
showUninstallCleanup?: boolean;
}
type AdvancedUninstallCleanupFieldProps = Pick<
BaseTabProps,
"settings" | "setSettings"
>;
export function AdvancedUninstallCleanupField({
settings,
setSettings,
}: AdvancedUninstallCleanupFieldProps) {
return (
By default we keep swatch settings, per-product overrides, and
term meta when the plugin is uninstalled. Enable this to remove
them and reset attribute types back to WooCommerce selects.
Developers can also force cleanup in code via the{" "}
Uninstall Cleanup
b3wvs_uninstall_remove_data filter.