diff --git a/uninstall.php b/uninstall.php new file mode 100644 index 00000000000..cb460866d0f --- /dev/null +++ b/uninstall.php @@ -0,0 +1,41 @@ +remove_cap( 'administrator', 'manage_woocommerce' ); + +// Pages +wp_delete_post( get_option('woocommerce_shop_page_id'), true ); +wp_delete_post( get_option('woocommerce_cart_page_id'), true ); +wp_delete_post( get_option('woocommerce_checkout_page_id'), true ); +wp_delete_post( get_option('woocommerce_order_tracking_page_id'), true ); +wp_delete_post( get_option('woocommerce_myaccount_page_id'), true ); +wp_delete_post( get_option('woocommerce_edit_address_page_id'), true ); +wp_delete_post( get_option('woocommerce_view_order_page_id'), true ); +wp_delete_post( get_option('woocommerce_change_password_page_id'), true ); +wp_delete_post( get_option('woocommerce_pay_page_id'), true ); +wp_delete_post( get_option('woocommerce_thanks_page_id'), true ); + +// Tables +$wpdb->query("DROP TABLE IF EXISTS ".$wpdb->prefix."woocommerce_attribute_taxonomies"); +$wpdb->query("DROP TABLE IF EXISTS ".$wpdb->prefix."woocommerce_downloadable_product_permissions"); +$wpdb->query("DROP TABLE IF EXISTS ".$wpdb->prefix."woocommerce_termmeta"); + +// Delete options +$wpdb->query("DELETE FROM $wpdb->options WHERE option_name LIKE 'woocommerce_%';"); \ No newline at end of file diff --git a/woocommerce.php b/woocommerce.php index 78388fa7b1f..4fde7d7e5ae 100644 --- a/woocommerce.php +++ b/woocommerce.php @@ -2,7 +2,7 @@ /* Plugin Name: WooCommerce Plugin URI: http://www.woothemes.com/woocommerce/ -Description: An eCommerce plugin for wordpress. +Description: An e-commerce toolkit that helps you sell anything. Beautifully. Version: 1.4 Author: WooThemes Author URI: http://woothemes.com