v1.0.0
This commit is contained in:
commit
6708bbb67f
43 changed files with 8342 additions and 0 deletions
28
includes/Core/Deactivator.php
Normal file
28
includes/Core/Deactivator.php
Normal 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();
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue