PluginProbe
Imagify Image Optimization: Optimize Images | Compress & Convert to WebP/AVIF / 1.5.3
Imagify Image Optimization: Optimize Images | Compress & Convert to WebP/AVIF v1.5.3
2.3.4 2.3.3 2.3.2 2.3.1 2.3.0 2.2.9 2.2.8 trunk 1.10 1.3.3 1.3.4 1.3.5 1.3.5.1 1.3.5.2 1.3.6 1.3.6.1 1.4 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.5 All 103 releases
imagify / uninstall.php

uninstall.php in Imagify Image Optimization: Optimize Images | Compress & Convert to WebP/AVIF 1.5.3, at uninstall.php

25 lines 874 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 // If uninstall not called from WordPress exit
3 defined( 'WP_UNINSTALL_PLUGIN' ) or die( 'Cheatin&#8217; uh?' );
4
5 // Delete Imagify options
6 delete_site_option( 'imagify_settings' );
7
8 // Delete all transients
9 delete_site_transient( 'imagify_check_licence_1' );
10 delete_site_transient( 'imagify_bulk_optimization_level' );
11 delete_site_transient( 'imagify_large_library' );
12
13 global $wpdb;
14 // WP transients
15 $wpdb->query( 'DELETE from ' . $wpdb->options . ' WHERE option_name LIKE "_transient_imagify-async-in-progress-%"' );
16
17 // NextGen Gallery transients
18 $wpdb->query( 'DELETE from ' . $wpdb->options . ' WHERE option_name LIKE "_transient_imagify-ngg-async-in-progress-%"' );
19
20 // Delete all user meta related to Imagify
21 delete_metadata( 'user', '', '_imagify_ignore_notices', '', true );
22
23 // Drop the tables
24 $wpdb->query( "DROP TABLE IF EXISTS $wpdb->ngg_imagify_data" );
25