This commit is contained in:
Javier Casares 2026-08-12 13:18:40 +00:00
commit bc1cb5e00a
32 changed files with 4254 additions and 0 deletions

28
uninstall.php Normal file
View 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' );