PluginProbe
Leadpages / trunk
Leadpages vtrunk
1.3.0 1.2.1 1.2.2 1.2.3 trunk 1.0.0 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.2.0
leadpages / uninstall.php

uninstall.php in Leadpages trunk, at uninstall.php

33 lines 886 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * This file is automatically requested when the user uninstalls the plugin.
5 *
6 * @see https://developer.wordpress.org/plugins/the-basics/uninstall-methods/
7 */
8
9 if (! defined('WP_UNINSTALL_PLUGIN')) {
10 exit();
11 }
12
13 global $wpdb;
14
15 $landing_pages_table = $wpdb->prefix . 'lp_landingpages';
16 $sql = "DROP TABLE IF EXISTS $landing_pages_table";
17 // phpcs:ignore WordPress.DB.PreparedSQL
18 $wpdb->query($sql);
19
20 delete_option('lp_last_page_sync_date');
21 delete_option('lp_db_version');
22 delete_option('lp_access_token');
23 delete_option('lp_refresh_token');
24 delete_option('lp_code_verifier');
25 delete_option('lp_platform');
26 delete_option('lp_nova_org_id');
27 delete_option('lp_nova_code_verifier');
28 delete_option('lp_nova_oauth_state');
29 delete_option('lp_nova_access_token');
30 delete_option('lp_nova_refresh_token');
31 delete_option('lp_nova_popup_id');
32 delete_option('lp_nova_popup_scope');
33