class-deactivate.php

Deactivate class for the PerformanceOptimise plugin.

Source includes/Core/class-deactivate.php2 min readPart of Performance Optimisation

includes/Core/class-deactivate.php

Deactivate class for the PerformanceOptimise plugin.

Namespace: PerformanceOptimise\\Inc · Lines: 372

Class Deactivate

Class Deactivate

Source: includes/Core/class-deactivate.php, line 30

class Deactivate

Tags: @since 1.0.0

publicstatic init()

public static function init(): void

Initialize the deactivation process.

Return: void.

Tags: @since 1.0.0

Source: includes/Core/class-deactivate.php, line 41

publicstatic unregister_runtime_hooks()

public static function unregister_runtime_hooks(): void

Remove plugin-owned runtime hooks for the remainder of this request.

Return: void.

Tags: @since 2.0.0

Source: includes/Core/class-deactivate.php, line 166

privatestatic unschedule_crons()

private static function unschedule_crons(): void

Unschedule cron jobs.

Return: void.

Tags: @since 1.0.0 · @since 2.0.0 Delegates to the canonical Cron::SCHEDULED_HOOKS list.

Source: includes/Core/class-deactivate.php, line 215

privatestatic unschedule_action_scheduler_jobs()

private static function unschedule_action_scheduler_jobs(): void

Unschedule plugin-owned Action Scheduler pending jobs.

Return: void.

Tags: @since 2.0.0

Source: includes/Core/class-deactivate.php, line 233

privatestatic remove_htaccess_rules()

private static function remove_htaccess_rules(): void

Remove the .htaccess wppo_rules marker block (fail-open).

Return: void.

Tags: @since 2.0.0

Source: includes/Core/class-deactivate.php, line 254

privatestatic cleanup_dropin_artifacts()

private static function cleanup_dropin_artifacts(): void

Sweep stale advanced-cache backup/tmp siblings (fail-open).

Return: void.

Tags: @since 2.0.0

Source: includes/Core/class-deactivate.php, line 281

publicstatic remove_wp_cache_constant()

public static function remove_wp_cache_constant(): ?string

Removes 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.

Tags: @since 1.0.0 · @since 2.0.0 Now atomic (tmp + verify + backup + rename with rollback) and returns a notice key on failure.

Source: includes/Core/class-deactivate.php, line 304