wordpress/php-fpm/wordpress_files/plugins/disable-json-api/uninstall.php
2020-05-22 01:40:23 +00:00

19 lines
421 B
PHP

<?php
/**
* This file magically runs when the plugin is deleted
*
* Direct from https://developer.wordpress.org/plugins/the-basics/uninstall-methods/
*/
// if uninstall.php is not called by WordPress, die
if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
die;
}
$option_name = 'DRA_route_whitelist';
delete_option( $option_name );
// for site options in Multisite
delete_site_option( $option_name );