This commit is contained in:
Javier Casares 2026-06-03 06:24:03 +00:00
commit 6708bbb67f
43 changed files with 8342 additions and 0 deletions

View file

@ -0,0 +1,28 @@
<?php
/**
* Fired during plugin deactivation.
*
* @package MediaRightsAudit\Core
*/
namespace MediaRightsAudit\Core;
use MediaRightsAudit\Core\Queue\Scheduler;
/**
* Handles tasks that run once when the plugin is deactivated.
*/
class Deactivator {
/**
* Cancels all pending scheduled actions and flushes rewrite rules.
*
* Database tables and stored data are intentionally preserved.
*
* @return void
*/
public static function deactivate(): void {
Scheduler::cancel_all();
flush_rewrite_rules();
}
}