PluginProbe ʕ •ᴥ•ʔ
CookieYes – Cookie Banner for Cookie Consent (Easy to setup GDPR/CCPA Compliant Cookie Notice) / 3.2.4
CookieYes – Cookie Banner for Cookie Consent (Easy to setup GDPR/CCPA Compliant Cookie Notice) v3.2.4
3.5.1 3.5.0 3.4.2 trunk 1.0.1 1.0.3 1.2 1.2.1 1.2.2 1.3 1.3.1 1.3.2 1.4 1.4.1 1.4.2 1.4.3 1.5 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 1.5.6 1.5.7 1.5.8 1.5.9 1.6.0 1.6.1 1.6.10 1.6.2 1.6.3 1.6.4 1.6.5 1.6.6 1.6.7 1.6.8 1.6.9 1.7.0 1.7.1 1.7.2 1.7.3 1.7.4 1.7.5 1.7.6 1.7.7 1.7.8 1.7.9 1.8.0 1.8.1 1.8.2 1.8.3 1.8.4 1.8.5 1.8.6 1.8.7 1.8.8 1.8.9 1.9.0 1.9.1 1.9.2 1.9.3 1.9.4 1.9.5 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9 2.1.0 2.1.1 2.1.2 2.1.3 3.0.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.2 3.1.3 3.1.4 3.1.5 3.1.6 3.1.7 3.1.8 3.2.0 3.2.1 3.2.10 3.2.2 3.2.3 3.2.4 3.2.5 3.2.6 3.2.7 3.2.8 3.2.9 3.3.0 3.3.1 3.3.2 3.3.3 3.3.4 3.3.5 3.3.6 3.3.7 3.3.8 3.3.9 3.3.9.1 3.4.0 3.4.1
cookie-law-info / uninstall.php
cookie-law-info Last commit date
languages 2 years ago legacy 2 years ago lite 2 years ago public 2 years ago class-autoloader.php 2 years ago cookie-law-info.php 2 years ago license.txt 2 years ago readme.txt 2 years ago uninstall.php 2 years ago wpml-config.xml 2 years ago
uninstall.php
73 lines
1 <?php
2 /**
3 * Fired when the plugin is uninstalled.
4 *
5 * When populating this file, consider the following flow
6 * of control:
7 *
8 * - This method should be static
9 * - Check if the $_REQUEST content actually is the plugin name
10 * - Run an admin referrer check to make sure it goes through authentication
11 * - Verify the output of $_GET makes sense
12 * - Repeat with other user roles. Best directly by using the links/query string parameters.
13 * - Repeat things for multisite. Once for a single site in the network, once sitewide.
14 *
15 * This file may be updated more in future version of the Boilerplate; however, this is the
16 * general skeleton and outline for how the file should work.
17 *
18 * For more information, see the following discussion:
19 * https://github.com/tommcfarlin/WordPress-Plugin-Boilerplate/pull/123#issuecomment-28541913
20 *
21 * @link https://www.webtoffee.com/
22 * @since 3.0.0
23 *
24 * @package CookieYes
25 */
26
27 // If uninstall not called from WordPress, then exit.
28 if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
29 exit;
30 }
31
32 if ( defined( 'CKY_REMOVE_ALL_DATA' ) && true === CKY_REMOVE_ALL_DATA ) {
33 try {
34 global $wpdb;
35 $wpdb->query( 'DROP TABLE IF EXISTS ' . $wpdb->prefix . 'cky_banners' ); // phpcs:ignore WordPress.DB.DirectDatabaseQuery
36 $wpdb->query( 'DROP TABLE IF EXISTS ' . $wpdb->prefix . 'cky_cookie_categories' ); // phpcs:ignore WordPress.DB.DirectDatabaseQuery
37 $wpdb->query( 'DROP TABLE IF EXISTS ' . $wpdb->prefix . 'cky_cookies' ); // phpcs:ignore WordPress.DB.DirectDatabaseQuery
38
39 $prefix = $wpdb->esc_like( '_transient_cky' ) . '%';
40 $keys = $wpdb->get_results( $wpdb->prepare( "SELECT option_name FROM $wpdb->options WHERE option_name LIKE %s", $prefix ), ARRAY_A ); // phpcs:ignore WordPress.DB.DirectDatabaseQuery
41 if ( ! is_wp_error( $keys ) ) {
42 $transients = array_map(
43 function( $key ) {
44 return ltrim( $key['option_name'], '_transient_' );
45 },
46 $keys
47 );
48 foreach ( $transients as $key ) {
49 delete_transient( $key );
50 }
51 }
52 $options = array(
53 'cky_banners_table_version',
54 'cky_cookie_category_table_version',
55 'cky_cookie_table_version',
56 'cky_consent_table_version',
57 'cky_scan_details',
58 'cky_settings',
59 'cky_admin_notices',
60 'wt_cli_version',
61 'CookieLawInfo-0.9',
62 'cky_cookie_consent_lite_db_version',
63 'cky_missing_tables',
64 'cky_migration_options',
65 );
66 foreach ( $options as $option_name ) {
67 delete_option( $option_name );
68 }
69 } catch ( Exception $e ) {
70 error_log( __( 'Failed to delete CookieYes plugin data!', 'cookie-law-info' ) );
71 }
72 }
73