PluginProbe
Plugins Condition & Site Check / 1.00
Plugins Condition & Site Check v1.00
2.01 trunk 1.00 1.01 1.02 1.03 1.04 1.05 1.06 1.07 1.08 1.09 2.00
plugins-condition / uninstall.php

uninstall.php in Plugins Condition & Site Check 1.00, at uninstall.php

35 lines 614 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Uninstall
4 *
5 * @package Plugins Condition
6 */
7
8 if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
9 exit();
10 }
11
12 global $wpdb;
13 $search_transients = '%plg_cond_datas_%';
14 $del_transients = $wpdb->get_results(
15 $wpdb->prepare(
16 "
17 SELECT option_name
18 FROM $wpdb->options
19 WHERE option_name LIKE %s
20 ",
21 $search_transients
22 )
23 );
24
25 $del_cash_count = 0;
26 foreach ( $del_transients as $del_transient ) {
27 $transient = str_replace( '_transient_', '', $del_transient->option_name );
28 $value_del_cash = get_transient( $transient );
29 if ( false <> $value_del_cash ) {
30 delete_transient( $transient );
31 }
32 }
33
34
35