<?php
/**
 * Deactivation handler.
 *
 * @package TradeSchoolManager
 */

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

class TSM_Deactivator {
	public static function deactivate() {
		$ts = wp_next_scheduled( 'tsm_license_daily_check' );
		if ( $ts ) { wp_unschedule_event( $ts, 'tsm_license_daily_check' ); }
		flush_rewrite_rules();
	}
}
