<?php
/**
* CartFlows
* Delete Plugin Data.
*
* @package CartFlows
*/
if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
exit;
}
global $wpdb;
$is_delete = get_option( 'cartflows_delete_plugin_data', false );
if ( 'enable' === $is_delete ) {
$options = array(
'cartflows-version',
'wcf_setup_complete',
'cartflows-divi-flows-and-steps-1',
'cartflows-gutenberg-flows-and-steps-1',
'cartflows-elementor-flows-and-steps-1',
'cartflows-beaver-builder-flows-and-steps-1',
'cartflows-last-export-checksums-latest',
'cartflows-batch-status-string',
'cartflows-elementor-requests',
'cartflows-fresh-site',
'cartflows-batch-is-complete',
'cartflows-old-ui-user',
'cartflows-legacy-admin',
'cartflows-legacy-meta-show-design-options',
'_cartflows_common',
'_cartflows_permalink',
'_cartflows_facebook',
'_cartflows_google_analytics',
'_cartflows_offer_global_settings',
'cf_analytics_installed_time',
'cf_analytics_optin',
'cartflows_delete_plugin_data',
);
foreach ( $options as $index => $key ) {
delete_option( $key );
}
}