ArcWOC/includes/class-hesabix-v2-deactivator.php
morrning 8aedcf2500 Release 4.9.0: invoice profit in WP + marketplace license banner
Show Hesabix invoice profit on ArcWOC orders list and order meta box,
refresh after sync, and surface WooCommerce marketplace license upsell
(hidden when active). Also includes 4.8.2 bank/cash take≤100 fixes.
2026-08-04 12:56:06 +00:00

39 lines
827 B
PHP
Executable file

<?php
/**
* Fired during plugin deactivation
*
* @since 2.0.0
* @package Hesabix_V2
* @subpackage Hesabix_V2/includes
*/
class Hesabix_V2_Deactivator
{
/**
* Deactivate the plugin
*
* @since 2.0.0
*/
public static function deactivate()
{
// Clear scheduled cron jobs
$timestamp = wp_next_scheduled('hesabix_v2_process_queue');
if ($timestamp) {
wp_unschedule_event($timestamp, 'hesabix_v2_process_queue');
}
$timestamp = wp_next_scheduled('hesabix_v2_clean_old_logs');
if ($timestamp) {
wp_unschedule_event($timestamp, 'hesabix_v2_clean_old_logs');
}
wp_clear_scheduled_hook('hesabix_v2_pull_stock_cron');
// Note: We don't delete data on deactivation
// Data will only be deleted if user chooses to uninstall
// Flush rewrite rules
flush_rewrite_rules();
}
}