-
Notifications
You must be signed in to change notification settings - Fork 4
/
uninstall.php
33 lines (28 loc) · 1011 Bytes
/
uninstall.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
die;
}
delete_option( 'acffa_settings' );
delete_option( 'ACFFA_cdn_error' );
delete_option( 'ACFFA_icon_data' );
delete_option( 'ACFFA_current_version' );
delete_option( 'ACFFA_active_icon_set' );
delete_option( 'ACFFA_latest_version' );
delete_option( 'ACFFA_latest_version_timestamp' );
delete_option( 'ACFFA_last_api_call_status' );
delete_option( 'ACFFA_kits' );
delete_transient( 'ACFFA_search_config' );
delete_transient( 'ACFFA_access_token' );
$ACFFA_custom_icon_sets_list = get_option( 'ACFFA_custom_icon_sets_list' );
if ( $ACFFA_custom_icon_sets_list ) {
foreach ( $ACFFA_custom_icon_sets_list as $version => $custom_icon_sets ) {
foreach ( $custom_icon_sets as $option_name => $list_label ) {
delete_option( $option_name );
}
}
delete_option( 'ACFFA_custom_icon_sets_list' );
}
$timestamp = wp_next_scheduled( 'ACFFA_refresh_latest_icons' );
if ( $timestamp ) {
wp_unschedule_event( $timestamp, 'ACFFA_refresh_latest_icons' );
}