-
Notifications
You must be signed in to change notification settings - Fork 2
/
uninstall.php
48 lines (37 loc) · 1.77 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php
if (!defined('WP_UNINSTALL_PLUGIN')) {
exit ();
}
/**
* Delete all defined options
*/
delete_option( 'affilinet_platform' );
delete_option( 'affilinet_publisher_id' );
delete_option( 'affilinet_standard_webservice_password' );
delete_option( 'affilinet_product_data_webservice_password' );
delete_option( 'affilinet_webservice_login_is_correct' );
delete_option( 'affilinet_text_monetization' );
delete_option( 'affilinet_link_replacement' );
delete_option( 'affilinet_text_widget' );
delete_option( 'affilinet_extended_settings' );
delete_option( 'affilinet_ywidgetpos' );
delete_option( 'affilinet_ywdensity' );
delete_option( 'affilinet_ywcap' );
delete_option( 'affilinet_ywcolor' );
delete_option( 'affilinet-performance-ads-version' );
/**
* unregister settings
*/
unregister_setting( 'affilinet-settings-group', 'affilinet_platform' );
unregister_setting( 'affilinet-settings-group', 'affilinet_publisher_id' );
unregister_setting( 'affilinet-settings-group', 'affilinet_standard_webservice_password' );
unregister_setting( 'affilinet-settings-group', 'affilinet_product_data_webservice_password' );
unregister_setting( 'affilinet-settings-group', 'affilinet_webservice_login_is_correct' );
unregister_setting('affilinet-settings-group', 'affilinet_text_monetization');
unregister_setting('affilinet-settings-group', 'affilinet_link_replacement');
unregister_setting('affilinet-settings-group', 'affilinet_text_widget');
unregister_setting('affilinet-settings-group', 'affilinet_extended_settings');
unregister_setting('affilinet-settings-group', 'affilinet_ywidgetpos');
unregister_setting('affilinet-settings-group', 'affilinet_ywdensity');
unregister_setting('affilinet-settings-group', 'affilinet_ywcap');
unregister_setting('affilinet-settings-group', 'affilinet_ywcolor');