mirror of
https://github.com/felixfoertsch/wordpress-dev-env.git
synced 2026-04-18 07:18:43 +02:00
Initial commit
This commit is contained in:
13
wordpress_plugins/debug-bar-plugin-activation/uninstall.php
Normal file
13
wordpress_plugins/debug-bar-plugin-activation/uninstall.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
/**
|
||||
* Code used when the plugin is removed (not just deactivated but actively deleted by the WordPress Admin).
|
||||
*
|
||||
* @package WordPress\Plugins\Debug Bar Plugin Activation
|
||||
* @subpackage Uninstall
|
||||
*/
|
||||
|
||||
if ( ! current_user_can( 'activate_plugins' ) || ( ! defined( 'ABSPATH' ) || ! defined( 'WP_UNINSTALL_PLUGIN' ) ) ) {
|
||||
exit();
|
||||
}
|
||||
|
||||
delete_option( 'debug_bar_plugin_activation' );
|
||||
Reference in New Issue
Block a user