<?php
declare(strict_types=1);

namespace forge12\floating_menu;

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

/**
 * Fired during plugin deactivation.
 *
 * @since 1.4.2
 */
class Deactivator {

	/**
	 * Run on plugin deactivation.
	 *
	 * Clears the rewrite rules registered for the floating_menu post type.
	 * No data is removed here — that is handled by uninstall.php.
	 *
	 * @return void
	 */
	public static function deactivate(): void {
		flush_rewrite_rules();
	}
}
