v0.1.0
This commit is contained in:
commit
bc1cb5e00a
32 changed files with 4254 additions and 0 deletions
28
uninstall.php
Normal file
28
uninstall.php
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
<?php
|
||||
/**
|
||||
* Uninstall routine for ROBOTSTXT Manager.
|
||||
*
|
||||
* @package Robotstxt_Manager
|
||||
*/
|
||||
|
||||
if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
if ( ! get_option( 'robotstxt_manager_delete_data_on_uninstall', false ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
$option_keys = array(
|
||||
'robotstxt_manager_store_url',
|
||||
'robotstxt_manager_api_key',
|
||||
'robotstxt_manager_cache_ttl_minutes',
|
||||
'robotstxt_manager_delete_data_on_uninstall',
|
||||
'robotstxt_manager_db_version',
|
||||
);
|
||||
|
||||
foreach ( $option_keys as $key ) {
|
||||
delete_option( $key );
|
||||
}
|
||||
|
||||
delete_transient( 'robotstxt_manager_catalog' );
|
||||
Loading…
Reference in a new issue