easy-actions-scheduler-cleaner-ayudawp
Last commit date
assets
7 months ago
includes
7 months ago
languages
7 months ago
easy-actions-scheduler-cleaner-ayudawp.php
7 months ago
readme.txt
7 months ago
uninstall.php
7 months ago
uninstall.php
24 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Uninstall handler for Easy Actions Scheduler Cleaner by AyudaWP |
| 4 | * |
| 5 | * @package EasyActionsSchedulerCleanerAyudaWP |
| 6 | * @since 1.0.0 |
| 7 | */ |
| 8 | |
| 9 | // If uninstall not called from WordPress, exit |
| 10 | if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) { |
| 11 | exit; |
| 12 | } |
| 13 | |
| 14 | // Delete plugin options |
| 15 | delete_option( 'easy_actions_scheduler_cleaner_ayudawp_redirect' ); |
| 16 | |
| 17 | // Clean up any transients (if we had any) |
| 18 | delete_transient( 'easy_actions_scheduler_cleaner_ayudawp_status' ); |
| 19 | |
| 20 | // Clean up cache entries that the plugin might have created |
| 21 | wp_cache_delete( 'easc_status_counts', 'easy_actions_scheduler_cleaner_ayudawp' ); |
| 22 | wp_cache_delete( 'easc_logs_count', 'easy_actions_scheduler_cleaner_ayudawp' ); |
| 23 | wp_cache_delete( 'easc_table_exists_' . md5( $GLOBALS['wpdb']->prefix ), 'easy_actions_scheduler_cleaner_ayudawp' ); |
| 24 | wp_cache_delete( 'easc_logs_table_exists_' . md5( $GLOBALS['wpdb']->prefix ), 'easy_actions_scheduler_cleaner_ayudawp' ); |