includes/Core/class-deactivate.php
Deactivate class for the PerformanceOptimise plugin.
Class Deactivate
Class Deactivate
class Deactivatepublicstatic init()
public static function init(): voidInitialize the deactivation process.
Return: void.
publicstatic unregister_runtime_hooks()
public static function unregister_runtime_hooks(): voidRemove plugin-owned runtime hooks for the remainder of this request.
Return: void.
privatestatic unschedule_crons()
private static function unschedule_crons(): voidUnschedule cron jobs.
Return: void.
privatestatic unschedule_action_scheduler_jobs()
private static function unschedule_action_scheduler_jobs(): voidUnschedule plugin-owned Action Scheduler pending jobs.
Return: void.
privatestatic remove_htaccess_rules()
private static function remove_htaccess_rules(): voidRemove the .htaccess wppo_rules marker block (fail-open).
Return: void.
privatestatic cleanup_dropin_artifacts()
private static function cleanup_dropin_artifacts(): voidSweep stale advanced-cache backup/tmp siblings (fail-open).
Return: void.
publicstatic remove_wp_cache_constant()
public static function remove_wp_cache_constant(): ?stringRemoves WP_CACHE constant from wp-config.php file if present.
Return: string|null — Notice key for the admin layer, or null on success / nothing to do.