-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathuninstall.php
More file actions
31 lines (28 loc) · 1.05 KB
/
uninstall.php
File metadata and controls
31 lines (28 loc) · 1.05 KB
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
<?php
/**
* Uninstall the Web Monetization plugin.
*
* This file is called when the plugin is uninstalled.
* It removes all options and metadata related to the plugin.
*
* @package WebMonetization
*/
if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
exit;
}
delete_option( 'intlwemo_enabled' );
delete_option( 'intlwemo_wallet_address' );
delete_option( 'intlwemo_wallet_address_connected' );
delete_option( 'intlwemo_enable_authors' );
delete_option( 'intlwemo_multi_wallets_option' );
delete_option( 'intlwemo_post_type_settings' );
delete_option( 'intlwemo_banner_enabled' );
delete_option( 'intlwemo_excluded_authors' );
delete_option( 'intlwemo_banner_config' );
delete_option( 'intlwemo_banner_published' );
delete_option( 'intlwemo_enable_country_wallets' );
delete_option( 'intlwemo_wallet_address_overrides' );
delete_option( 'intlwemo_wallet_address_connected_list' );
delete_metadata( 'user', 0, 'intlwemo_wallet_address', '', true );
delete_metadata( 'post', 0, 'intlwemo_disabled', '', true );
delete_metadata( 'post', 0, 'intlwemo_wallet_address', '', true );