Files
pr-vision/includes/core/class-prv-deactivator.php
peptiderepo 7d254019c6 PHPCS: fix file docblock format (short description + blank line after)
File-level docblocks lacked a short description and required blank line
between the block and declare(strict_types=1). WP PHPCS file comment
sniff requires both. All 21 PHP files corrected.

Agent-Session: pr-vision rename v0.1.1
2026-06-13 09:46:19 +00:00

36 lines
778 B
PHP

<?php
/**
* Plugin deactivation handler.
*
* @package PrVision
*/
declare(strict_types=1);
/**
* Plugin deactivation handler.
*
* Clears the scheduled WP-Cron event so probes stop running when the plugin
* is deactivated. Does NOT purge data — that is uninstall's job.
*
* Who triggers: register_deactivation_hook() in pr-vision.php.
* Dependencies: PRV_Cron.
*
* @see class-prv-cron.php — Cron registration + clearing.
* @see uninstall.php — Full data purge on uninstall.
* @package PrVision
*/
class PRV_Deactivator {
/**
* Clear the weekly cron schedule.
*
* Side effects: Removes the prv_weekly_probe event from WP-Cron.
*
* @return void
*/
public static function deactivate(): void {
PRV_Cron::clear_schedule();
}
}