PluginProbe ʕ •ᴥ•ʔ
WPCode – Insert Headers and Footers + Custom Code Snippets – WordPress Code Manager / 2.0.12
WPCode – Insert Headers and Footers + Custom Code Snippets – WordPress Code Manager v2.0.12
2.3.6 trunk 1.1 1.2 1.3 1.3.1 1.3.2 1.3.3 1.4 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.5.0 1.6.0 1.6.1 1.6.2 2.0.0 2.0.1 2.0.10 2.0.11 2.0.12 2.0.13 2.0.13.1 2.0.2 2.0.3 2.0.4 2.0.4.1 2.0.4.2 2.0.4.3 2.0.4.4 2.0.5 2.0.6 2.0.7 2.0.8 2.0.8.1 2.0.9 2.1.0 2.1.1 2.1.10 2.1.11 2.1.12 2.1.13 2.1.14 2.1.2 2.1.3 2.1.3.1 2.1.4 2.1.4.1 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 2.2.0 2.2.1 2.2.2 2.2.3 2.2.3.1 2.2.4 2.2.4.1 2.2.5 2.2.6 2.2.7 2.2.8 2.2.9 2.3.0 2.3.1 2.3.2 2.3.2.1 2.3.3 2.3.4 2.3.5
insert-headers-and-footers / uninstall.php
insert-headers-and-footers Last commit date
admin 3 years ago build 3 years ago includes 3 years ago languages 3 years ago ihaf.php 3 years ago readme.txt 3 years ago uninstall.php 3 years ago
uninstall.php
38 lines
1 <?php
2 /**
3 * Uninstall WPCode.
4 *
5 * Remove:
6 * - custom capabilities.
7 *
8 * @package WPCode
9 */
10
11 // Exit if accessed directly.
12 if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
13 exit;
14 }
15
16 // If the function already exists we shouldn't run the uninstall as another version of the plugin is active.
17 if ( function_exists( 'WPCode' ) ) {
18 return;
19 }
20
21 require_once 'ihaf.php';
22
23 if ( class_exists( 'WPCode_Capabilities' ) ) {
24 // Remove custom capabilities on uninstall.
25 WPCode_Capabilities::uninstall();
26 }
27
28 if ( class_exists( 'WPCode_Notifications' ) ) {
29 WPCode_Notifications::delete_notifications_data();
30 }
31
32 if ( function_exists( 'wp_unschedule_hook' ) ) {
33 wp_unschedule_hook( 'wpcode_usage_tracking_cron' );
34 }
35
36 delete_option( 'wpcode_send_usage_last_run' );
37 delete_option( 'wpcode_usage_tracking_config' );
38