<?php
/**
 * Deactivation routine.
 *
 * @package MenuVerse
 */

namespace WPXero\MenuVerse;

defined( 'ABSPATH' ) || exit;

/**
 * Cleans up transient runtime state on deactivation.
 *
 * User data is never touched here: removing settings is the job of
 * uninstall.php, and only when the user opted into it.
 */
final class Deactivator {

	/**
	 * Runs on plugin deactivation.
	 *
	 * @return void
	 */
	public static function deactivate() {
		if ( function_exists( 'wp_cache_flush_group' ) ) {
			wp_cache_flush_group( 'menuverse' );
		}

		/**
		 * Fires after MenuVerse has been deactivated.
		 *
		 * @since 1.0.0
		 */
		do_action( 'menuverse_deactivated' );
	}
}
