<?php
/**
 * FinalPOS Uninstall
 *
 * Uninstalling FinalPOS deletes options and cleans up database.
 *
 * @package FinalPOS
 */

// If uninstall not called from WordPress, exit.
if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
	exit;
}

// Include constants file first (required for disconnect_plugin method).
require_once plugin_dir_path( __FILE__ ) . 'includes/constants.php';

// Include the common functions file to access disconnect_plugin method.
require_once plugin_dir_path( __FILE__ ) . 'includes/common-functions.php';

// Call the reusable disconnect method.
FinalPOS_Common::disconnect_plugin();
