-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathuninstall.php
More file actions
26 lines (24 loc) · 736 Bytes
/
uninstall.php
File metadata and controls
26 lines (24 loc) · 736 Bytes
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
<?php
/**
* Fired when the plugin is uninstalled.
*
* @link https://www.josevarghese.com
* @since 1.0.0
* @package Super_Web_Share
*/
// If uninstall not called from WordPress, then exit.
if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
exit;
}
/**
* Delete database settings
*
* @since 1.0.0
*/
delete_option( 'superwebshare_inline_settings' );
delete_option( 'superwebshare_floating_settings' );
delete_option( 'superwebshare_fallback_settings' );
delete_option( 'superwebshare_appearance_settings' );
delete_option( 'superwebshare_version' );
delete_metadata( 'post', false, '_superwebshare_post_inline_active', null, true );
delete_metadata( 'post', false, '_superwebshare_post_floating_active', null, true );