dist
5 years ago
docker
5 years ago
images
5 years ago
includes
5 years ago
languages
5 years ago
src
5 years ago
storybook
5 years ago
typings
5 years ago
vendor
5 years ago
chunk-src-version-param.js
5 years ago
license.txt
6 years ago
lint-staged.config.js
5 years ago
readme.txt
5 years ago
uninstall.php
5 years ago
unminify.js
6 years ago
woocommerce-admin.php
5 years ago
uninstall.php
24 lines
| 1 | <?php |
| 2 | /** |
| 3 | * WC Admin Uninstall |
| 4 | * |
| 5 | * @package WooCommerce\Admin\Uninstaller |
| 6 | */ |
| 7 | |
| 8 | defined( 'WP_UNINSTALL_PLUGIN' ) || exit; |
| 9 | |
| 10 | // Don't delete table data if core WooCommerce contains WooCommerce Admin. |
| 11 | // This could alternatively check for a specific WooCommerce version rather than a file. |
| 12 | if ( |
| 13 | defined( 'WC_ABSPATH' ) && |
| 14 | file_exists( WC_ABSPATH . 'packages/woocommerce-admin/woocommerce-admin.php' ) |
| 15 | ) { |
| 16 | return; |
| 17 | } |
| 18 | |
| 19 | use \Automattic\WooCommerce\Admin\Install; |
| 20 | |
| 21 | require_once dirname( __FILE__ ) . '/woocommerce-admin.php'; |
| 22 | |
| 23 | Install::drop_tables(); |
| 24 |