wc_update_210_remove_pages

The WooCommerce wc update 210 remove pages function.

Description

wc_update_210_remove_pages(); 

Usage

  1. if ( !function_exists( 'wc_update_210_remove_pages' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce/includes/wc-update-functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = wc_update_210_remove_pages(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/includes/wc-update-functions.php  
  1. function wc_update_210_remove_pages() { 
  2. // Pages no longer used 
  3. wp_trash_post( get_option( 'woocommerce_pay_page_id' ) ); 
  4. wp_trash_post( get_option( 'woocommerce_thanks_page_id' ) ); 
  5. wp_trash_post( get_option( 'woocommerce_view_order_page_id' ) ); 
  6. wp_trash_post( get_option( 'woocommerce_change_password_page_id' ) ); 
  7. wp_trash_post( get_option( 'woocommerce_edit_address_page_id' ) ); 
  8. wp_trash_post( get_option( 'woocommerce_lost_password_page_id' ) );