Per-call recording of cost and I/O for every LLM probe. New tables prv_call_meta (schema v3) and prv_call_io. New admin pages: Costs (spend drill-down vs $5 cap) and Call Log (paginated + detail drawer). 90-day I/O retention prune via prv_daily_prune cron. P0 security: key never stored; gateway client exposes HTTP status only.
QA APPROVED 2026-06-15 SHA 09dc6db9ce
39 lines
926 B
PHP
39 lines
926 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 class-prv-prune-cron.php — Daily prune cron clear (v0.3.0).
|
|
* @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();
|
|
// v0.3.0: clear the daily prune event.
|
|
PRV_Prune_Cron::clear_schedule();
|
|
}
|
|
}
|