<?php
/**
 * Uninstall cleanup.
 *
 * @package FailedOrderRescueForWooCommerce
 */

if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
	exit;
}

$ford_settings = get_option( 'ford_settings', array() );

if ( is_array( $ford_settings ) && isset( $ford_settings['delete_data_on_uninstall'] ) && 'yes' === $ford_settings['delete_data_on_uninstall'] ) {
	delete_option( 'ford_settings' );
}
