woocommerce/admin/includes/updates/woocommerce-update-2.1.php

19 lines
536 B
PHP
Raw Normal View History

<?php
/**
* Update WC to 2.1.0
*
* @author WooThemes
* @category Admin
* @package WooCommerce/Admin/Updates
* @version 2.1.0
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
global $wpdb, $woocommerce;
// Pages no longer used
wp_delete_post( get_option('woocommerce_pay_page_id'), true );
2013-06-04 16:33:43 +00:00
wp_delete_post( get_option('woocommerce_thanks_page_id'), true );
2013-06-05 11:07:23 +00:00
wp_delete_post( get_option('woocommerce_view_order_page_id'), true );
wp_delete_post( get_option('woocommerce_change_password_page_id'), true );