Browse
For agents
About
Easy Basic Authentication – Add basic auth to site or admin area
/
trunk
Easy Basic Authentication – Add basic auth to site or admin area
vtrunk
Switch version
trunk
1.1
1.2
1.3
1.3.1
1.3.2
1.3.3
1.3.4
1.3.5
1.4
1.4.1
1.5
1.5.1
1.5.2
1.5.3
1.6
1.6.1
1.6.2
1.6.3
1.6.4
1.7
1.7.1
1.8
1.8.1
1.9
All 50 releases
Overview
Code
easy-basic-authentication
/
uninstall.php
uninstall.php
in Easy Basic Authentication – Add basic auth to site or admin area trunk, at uninstall.php
13 lines
419 B
Find file
t
No matching file
Up and down to move
Enter to open
Esc to close
Raw
Download
Zip
View raw
1
<
?
php
2
if
(
!
defined
(
'
WP_UNINSTALL_PLUGIN
'
)
)
{
3
exit
;
4
}
5
6
//
Check if the user has selected removing all plugin data from the database after uninstalling the plugin - defaults to 0 (false)
7
$
remove_data
=
get_option
(
'
basic_auth_plugin_remove_data_after_uninstall
'
,
'
0
'
)
;
8
9
if
(
$
remove_data
===
'
1
'
)
{
10
global
$
wpdb
;
11
12
$
wpdb
->
query
(
"
DELETE
FROM
{
$
wpdb
->
options
}
WHERE
option_name
LIKE
'
basic_auth_plugin_%
'
"
)
;
13
}