- WordPress core y plugins - Tema Twenty Twenty-Four configurado - Plugin allow-unfiltered-html.php simplificado - .gitignore configurado para excluir wp-config.php y uploads 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
51 lines
1.8 KiB
PHP
Executable File
51 lines
1.8 KiB
PHP
Executable File
<?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.
|
|
*
|
|
* This file may be updated more in future version of the Boilerplate; however, this is the
|
|
* general skeleton and outline for how the file should work.
|
|
*
|
|
* For more information, see the following discussion:
|
|
* https://github.com/tommcfarlin/WordPress-Plugin-Boilerplate/pull/123#issuecomment-28541913
|
|
*
|
|
* @link https://raiolanetworks.es
|
|
* @since 1.0.0
|
|
*
|
|
* @package Wp_Database_Tools
|
|
*/
|
|
|
|
// If uninstall not called from WordPress, then exit.
|
|
if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
|
|
exit;
|
|
}
|
|
|
|
$wpdbt_prefix = 'wpdbt_';
|
|
|
|
// Remove options.
|
|
delete_option( $wpdbt_prefix . 'edd_license_status' );
|
|
delete_option( $wpdbt_prefix . 'edd_license_key' );
|
|
delete_option( $wpdbt_prefix . 'user_options_general' );
|
|
// Remove transients.
|
|
delete_transient( $wpdbt_prefix . 'errors' );
|
|
delete_transient( $wpdbt_prefix . 'warning' );
|
|
delete_transient( $wpdbt_prefix . 'successes' );
|
|
delete_transient( $wpdbt_prefix . 'prices_pro' );
|
|
delete_transient( $wpdbt_prefix . 'features_pro' );
|
|
delete_transient( $wpdbt_prefix . 'scanner_last_status' );
|
|
delete_transient( $wpdbt_prefix . 'scanner_status' );
|
|
delete_transient( $wpdbt_prefix . 'forcer_execute_scanner' );
|
|
// Old versions.
|
|
delete_transient( $wpdbt_prefix . 'execute_scanner' ); // UNSET
|
|
// Remove user metadata for all users.
|
|
delete_metadata( 'user', 0, $wpdbt_prefix . 'feedback', '', true );
|