Trash in the uninstaller too
This commit is contained in:
parent
449c95029b
commit
8a2a5b06c6
|
@ -21,18 +21,18 @@ $installer = include( 'includes/class-wc-install.php' );
|
|||
$installer->remove_roles();
|
||||
|
||||
// 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_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_logout_page_id' ), true );
|
||||
wp_trash_post( get_option( 'woocommerce_shop_page_id' ) );
|
||||
wp_trash_post( get_option( 'woocommerce_cart_page_id' ) );
|
||||
wp_trash_post( get_option( 'woocommerce_checkout_page_id' ) );
|
||||
wp_trash_post( get_option( 'woocommerce_myaccount_page_id' ) );
|
||||
wp_trash_post( get_option( 'woocommerce_edit_address_page_id' ) );
|
||||
wp_trash_post( get_option( 'woocommerce_view_order_page_id' ) );
|
||||
wp_trash_post( get_option( 'woocommerce_change_password_page_id' ) );
|
||||
wp_trash_post( get_option( 'woocommerce_logout_page_id' ) );
|
||||
|
||||
// mijireh checkout page
|
||||
if ( $mijireh_page = get_page_by_path( 'mijireh-secure-checkout' ) )
|
||||
wp_delete_post( $mijireh_page->ID, true );
|
||||
wp_trash_post( $mijireh_page->ID );
|
||||
|
||||
// Tables
|
||||
$wpdb->query( "DROP TABLE IF EXISTS " . $wpdb->prefix . "woocommerce_attribute_taxonomies" );
|
||||
|
|
Loading…
Reference in New Issue