FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
visualizer/uninstall.php at development · Codeinwp/visualizer · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
Codeinwp
/
visualizer
Public
Notifications
You must be signed in to change notification settings
Fork
29
Star
108
Code
Issues
31
Pull requests
4
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
visualizer
/
uninstall.php
Copy path
More file actions
More file actions
Latest commit
History
History
History
29 lines (26 loc) · 870 Bytes
Breadcrumbs
visualizer
/
uninstall.php
Copy path
File metadata and controls
29 lines (26 loc) · 870 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
<?php
/**
* Fired when the plugin is uninstalled.
*
* When populating this file, consider the following flow
* of control:
*
* - This method should be static
* - Check if the $_REQUEST content actually is the plugin name
* - Run an admin referrer check to make sure it goes through authentication
* - Verify the output of $_GET makes sense
* - Repeat with other user roles. Best directly by using the links/query string parameters.
* - Repeat things for multisite. Once for a single site in the network, once sitewide.
*
* @link http://themeisle.com
* @since 3.9
*
* @package Visualizer
*/
// If uninstall not called from WordPress, then exit.
if
( !
defined
(
'
WP_UNINSTALL_PLUGIN
'
) ) {
exit
;
}
// clean up after ourselves, that's a good plugin!
delete_option
(
'
visualizer_fresh_install
'
);
delete_option
(
'
visualizer_wizard_data
'
);
Back
|
FazBrowse Home
|
New Git URL