matomo
Last commit date
app
1 year ago
assets
1 year ago
classes
1 year ago
config
2 years ago
languages
6 years ago
node_modules
4 years ago
plugins
2 years ago
.gitmodules
2 years ago
.htaccess
6 years ago
LEGALNOTICE
2 years ago
LICENSE
6 years ago
matomo.php
1 year ago
readme.txt
1 year ago
shared.php
3 years ago
uninstall.php
6 years ago
wdio.conf.tracking.ts
2 years ago
uninstall.php
23 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_settings = new \WpMatomo\Settings(); |
| 19 | $matomo_should_remove_all_data = $matomo_settings->should_delete_all_data_on_uninstall(); |
| 20 | |
| 21 | $matomo_uninstaller = new \WpMatomo\Uninstaller(); |
| 22 | $matomo_uninstaller->uninstall( $matomo_should_remove_all_data ); |
| 23 |