uninstall.php
Uninstall script for Performance Optimisation.
function wppo_cleanup_network_files()
function wppo_cleanup_network_files(): voidClean up network-global filesystem artifacts (runs once per process).
Return: void.
function wppo_cleanup_dropin_artifacts()
function wppo_cleanup_dropin_artifacts(): voidDelete advanced-cache backup/tmp siblings (fail-open).
Return: void.
function wppo_cleanup_redis_state_files()
function wppo_cleanup_redis_state_files(): voidDelete Redis circuit-breaker sidecar files (fail-open).
Return: void.
function wppo_cleanup_redis_config_htaccess_block()
function wppo_cleanup_redis_config_htaccess_block(): voidRemove the orphan \”WPPO Redis Config\” deny block from wp-content/.htaccess (fail-open).
Return: void.
function wppo_remove_htaccess_rules()
function wppo_remove_htaccess_rules(): voidRemove the wppo_rules marker block from .htaccess (fail-open).
Return: void.
function wppo_cleanup_htaccess_artifacts()
function wppo_cleanup_htaccess_artifacts(string $htaccess_file): voidDelete .htaccess backup/tmp siblings (fail-open). Parameter Type Default Description $htaccess_filestring— Absolute path to the .htaccess file.
Return: void.
function wppo_clear_scheduled_jobs()
function wppo_clear_scheduled_jobs(): voidUnschedule plugin WP-Cron events and Action Scheduler actions (fail-open).
Return: void.
function wppo_cleanup_site()
function wppo_cleanup_site(bool=true $clean_network_files): voidClean up plugin data for a single site. Parameter Type Default Description $clean_network_filesbool=true— Whether to clean network-global files.
Return: void.
function wppo_delete_directory()
function wppo_delete_directory(string $dir): voidRecursively delete a directory using native PHP (safe for uninstall context). Parameter Type Default Description $dirstring— Absolute path to the directory.
Return: void.