<?php

/**
 * Fired during plugin deactivation
 */
class Ekc_Deactivator {

	public static function deactivate() {
		// unschedule cron events
		$scheduled_timestamp = wp_next_scheduled( 'ekc_check_scheduled_mails' );
		if ( $scheduled_timestamp ) {
			wp_unschedule_event( $scheduled_timestamp, 'ekc_check_scheduled_mails' );
		}
	}
}
