<?php
/**
 * Fired during plugin deactivation.
 *
 * This class defines all code necessary to run during the plugin's deactivation.
 *
 * @package    Cloudi7_ID_Card_Generator
 * @subpackage Cloudi7_ID_Card_Generator/includes
 */

// Prevent direct access.
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

/**
 * Class Cloudi7_ICG_Deactivator
 *
 * Handles tasks that run once when the plugin is deactivated.
 * Note: data is intentionally preserved on deactivation; use
 * an uninstall.php file for full cleanup/removal.
 */
class Cloudi7_ICG_Deactivator {

	/**
	 * Run deactivation routines.
	 *
	 * Called by register_deactivation_hook in the main plugin file.
	 *
	 * @return void
	 */
	public static function deactivate() {
		// Flush rewrite rules to remove any CPT rules added by this plugin.
		flush_rewrite_rules();
	}
}
