matomo
Last commit date
app
6 years ago
assets
6 years ago
classes
6 years ago
config
6 years ago
languages
6 years ago
plugins
6 years ago
.htaccess
6 years ago
LEGALNOTICE
6 years ago
LICENSE
6 years ago
matomo.php
6 years ago
readme.txt
6 years ago
shared.php
6 years ago
uninstall.php
6 years ago
uninstall.php
22 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Matomo - free/libre analytics platform |
| 4 | * |
| 5 | * @link https://matomo.org |
| 6 | * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later |
| 7 | * @package matomo |
| 8 | */ |
| 9 | |
| 10 | // if uninstall.php is not called by WordPress, die. |
| 11 | if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) { |
| 12 | die; |
| 13 | } |
| 14 | |
| 15 | require 'shared.php'; |
| 16 | |
| 17 | $matomo_is_using_multi_site = function_exists( 'is_multisite' ) && is_multisite(); |
| 18 | $matomo_should_remove_all_data = defined( 'MATOMO_REMOVE_ALL_DATA' ) && MATOMO_REMOVE_ALL_DATA === true; |
| 19 | |
| 20 | $matomo_uninstaller = new \WpMatomo\Uninstaller(); |
| 21 | $matomo_uninstaller->uninstall( $matomo_should_remove_all_data ); |
| 22 |