<?php
/**
 * Uninstall — removes plugin options.
 *
 * @package CVS
 */

defined( 'WP_UNINSTALL_PLUGIN' ) || exit;

delete_option( 'cvs_settings' );
delete_option( 'cvs_settings_source' );
delete_option( 'cvs_switch_log' );
delete_option( 'cvs_previous_core_version' );
delete_option( 'cvs_pin_set_at' );
delete_option( 'cvs_last_checksum_result' );
delete_option( 'cvs_activation_redirect' );
delete_transient( 'cvs_stable_check' );

if ( is_multisite() ) {
	delete_site_option( 'cvs_network_settings' );
}

$volade_cleanup = __DIR__ . '/volade-sdk/uninstall-cleanup.php';
if ( is_readable( $volade_cleanup ) ) {
	require_once $volade_cleanup;
	if ( function_exists( 'volade_sdk_uninstall_cleanup' ) ) {
		volade_sdk_uninstall_cleanup();
	}
}
