<?php
/**
 * Plugin deactivator.
 *
 * @package OpusPriceBuilder
 */

declare(strict_types=1);

namespace OpusPriceBuilder;

/**
 * Handles plugin deactivation.
 */
class Deactivator {

	/**
	 * Run deactivation tasks.
	 *
	 * @return void
	 */
	public static function deactivate(): void {
		// Flush rewrite rules.
		flush_rewrite_rules();

		// Clear any scheduled events.
		wp_clear_scheduled_hook( 'oppb_daily_cleanup' );
	}
}
