Change conditional to wc_shipping_enabled

Signed-off-by: Leon Francis Shelhamer <leon@211j.com>
This commit is contained in:
Leon Francis Shelhamer 2020-05-02 18:12:16 -04:00
parent 7f5dd5c997
commit fe3de4f02c
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ if ( ! defined( 'ABSPATH' ) ) {
<p>
<?php
$dashboard_desc = __( 'From your account dashboard you can view your <a href="%1$s">recent orders</a>, manage your <a href="%2$s">billing address</a>, and <a href="%3$s">edit your password and account details</a>.', 'woocommerce' );
if ( get_option( 'woocommerce_ship_to_countries' ) !== 'disabled' ) {
if ( wc_shipping_enabled() ) {
$dashboard_desc = __( 'From your account dashboard you can view your <a href="%1$s">recent orders</a>, manage your <a href="%2$s">shipping and billing addresses</a>, and <a href="%3$s">edit your password and account details</a>.', 'woocommerce' );
}
printf(