<?php
/**
 * Fired when the plugin is uninstalled.
 *
 * @package    MaplePress
 * @subpackage MaplePress/includes
 */

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

// Delete all plugin options
delete_option( 'maplepress_settings' );

// Delete any transients
delete_transient( 'maplepress_activation_redirect' );
delete_transient( 'maplepress_redirect_to_sync' );
delete_transient( 'maplepress_pending_deletion' );

// Log the uninstall
error_log( 'MaplePress: Plugin uninstalled and all data removed' );
