wordpress/php-fpm/wordpress_files/plugins/wp-statistics/uninstall.php

11 lines
393 B
PHP
Raw Normal View History

2020-05-22 03:40:23 +02:00
<?php
// if not called from WordPress exit
if ( ! defined('WP_UNINSTALL_PLUGIN') ) {
exit();
}
// By default, WP Statistics leaves all data in the database, however a user can select to
// remove it, in which case the wp_statistics_removal option is set and we should remove that
// here in case the user wants to re-install the plugin at some point.
delete_option('wp_statistics_removal');