PluginProbe ʕ •ᴥ•ʔ
CookieYes – Cookie Banner for Cookie Consent (Easy to setup GDPR/CCPA Compliant Cookie Notice) / 3.3.7
CookieYes – Cookie Banner for Cookie Consent (Easy to setup GDPR/CCPA Compliant Cookie Notice) v3.3.7
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 6 months ago legacy 6 months ago lite 6 months ago public 6 months ago class-autoloader.php 6 months ago cookie-law-info.php 6 months ago license.txt 6 months ago readme.txt 6 months ago uninstall.php 6 months ago wpml-config.xml 6 months ago
uninstall.php
75 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 delete_option( 'cky_connect_notice' );
33
34 if ( defined( 'CKY_REMOVE_ALL_DATA' ) && true === CKY_REMOVE_ALL_DATA ) {
35 try {
36 global $wpdb;
37 $wpdb->query( 'DROP TABLE IF EXISTS ' . $wpdb->prefix . 'cky_banners' ); // phpcs:ignore WordPress.DB.DirectDatabaseQuery
38 $wpdb->query( 'DROP TABLE IF EXISTS ' . $wpdb->prefix . 'cky_cookie_categories' ); // phpcs:ignore WordPress.DB.DirectDatabaseQuery
39 $wpdb->query( 'DROP TABLE IF EXISTS ' . $wpdb->prefix . 'cky_cookies' ); // phpcs:ignore WordPress.DB.DirectDatabaseQuery
40
41 $prefix = $wpdb->esc_like( '_transient_cky' ) . '%';
42 $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
43 if ( ! is_wp_error( $keys ) ) {
44 $transients = array_map(
45 function( $key ) {
46 return ltrim( $key['option_name'], '_transient_' );
47 },
48 $keys
49 );
50 foreach ( $transients as $key ) {
51 delete_transient( $key );
52 }
53 }
54 $options = array(
55 'cky_banners_table_version',
56 'cky_cookie_category_table_version',
57 'cky_cookie_table_version',
58 'cky_consent_table_version',
59 'cky_scan_details',
60 'cky_settings',
61 'cky_admin_notices',
62 'wt_cli_version',
63 'CookieLawInfo-0.9',
64 'cky_cookie_consent_lite_db_version',
65 'cky_missing_tables',
66 'cky_migration_options',
67 );
68 foreach ( $options as $option_name ) {
69 delete_option( $option_name );
70 }
71 } catch ( Exception $e ) {
72 error_log( __( 'Failed to delete CookieYes plugin data!', 'cookie-law-info' ) ); //phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_error_log
73 }
74 }
75