From a447221213fa7eeb1f8f69f2d761aa61eddaf803 Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Thu, 12 Oct 2017 17:19:47 +0100 Subject: [PATCH] wc_setup_wcs_tout is not used. --- .../admin/class-wc-admin-setup-wizard.php | 50 ------------------- 1 file changed, 50 deletions(-) diff --git a/includes/admin/class-wc-admin-setup-wizard.php b/includes/admin/class-wc-admin-setup-wizard.php index 168d7a704aa..7ef1029b50b 100644 --- a/includes/admin/class-wc-admin-setup-wizard.php +++ b/includes/admin/class-wc-admin-setup-wizard.php @@ -467,56 +467,6 @@ class WC_Admin_Setup_Wizard { exit; } - /** - * Tout WooCommerce Services for North American stores. - */ - protected function wc_setup_wcs_tout() { - $base_location = wc_get_base_location(); - - if ( false === $base_location['country'] ) { - $base_location = WC_Geolocation::geolocate_ip(); - } - - if ( ! in_array( $base_location['country'], array( 'US', 'CA' ), true ) ) { - return; - } - - $default_content = array( - 'title' => __( 'Enable WooCommerce Shipping (recommended)', 'woocommerce' ), - 'description' => __( 'Print labels and get discounted USPS shipping rates, right from your WooCommerce dashboard. Powered by WooCommerce Services.', 'woocommerce' ), - ); - - switch ( $base_location['country'] ) { - case 'CA': - $local_content = array( - 'title' => __( 'Enable WooCommerce Shipping (recommended)', 'woocommerce' ), - 'description' => __( 'Display live rates from Canada Post at checkout to make shipping a breeze. Powered by WooCommerce Services.', 'woocommerce' ), - ); - break; - default: - $local_content = array(); - } - - $content = wp_parse_args( $local_content, $default_content ); - ?> - -