v1.2.5
This commit is contained in:
parent
891736d707
commit
0c4fda16c0
1 changed files with 615 additions and 454 deletions
19
uninstall.php
Normal file
19
uninstall.php
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
<?php
|
||||
/**
|
||||
* Uninstall routine for Hello (by ROBOTSTXT).
|
||||
*
|
||||
* Plugin data is preserved by default. Removal only happens when the user
|
||||
* explicitly enabled the "Delete plugin data on uninstall" setting.
|
||||
*
|
||||
* @package ROBOTSTXT_Hello
|
||||
*/
|
||||
|
||||
if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
if ( '1' === get_option( 'robotstxt_hello_delete_data', '' ) ) {
|
||||
delete_metadata( 'user', 0, 'robotstxt_hello_dismissed_manager_notice', '', true );
|
||||
}
|
||||
|
||||
delete_option( 'robotstxt_hello_delete_data' );
|
||||
Loading…
Reference in a new issue