<?php
/**
 * Fired when the plugin is uninstalled.
 *
 * @link       https://adrianrodriguezstudios.com
 *
 * @package    ARS_Constellation_Client_Portal
 */

/**
 * Exit if not called from WordPress.
 */
if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
	exit;
}

if ( ! defined( 'ACCP_PLUGIN_DIR_PATH' ) ) {
	define( 'ACCP_PLUGIN_DIR_PATH', plugin_dir_path( __FILE__ ) );
}

require_once ACCP_PLUGIN_DIR_PATH . 'includes/class-ars-constellation-client-portal-utility-functions.php';

/**
 * Include the pro uninstall functionality if this
 * is the pro plugin.
 */
global $wp_filesystem;

WP_Filesystem();

$is_pro = $wp_filesystem->exists( ACCP_PLUGIN_DIR_PATH . 'pro/includes/ars-constellation-client-portal-pro-uninstall.php' );

if ( true === $is_pro ) {

	require_once ACCP_PLUGIN_DIR_PATH . 'pro/includes/ars-constellation-client-portal-pro-uninstall.php';

}
