Merge pull request #22078 from unfulvio/make-shipping-options-available-text-filterable

Make shipping may be available text filterable
This commit is contained in:
Rodrigo Primo 2019-01-09 17:38:00 -02:00 committed by GitHub
commit 0b09bef386
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -51,14 +51,14 @@ $calculator_text = '';
printf( esc_html__( 'Estimate for %s.', 'woocommerce' ) . ' ', '<strong>' . esc_html( $formatted_destination ) . '</strong>' );
$calculator_text = __( 'Change address', 'woocommerce' );
} else {
echo esc_html__( 'This is only an estimate. Prices will be updated during checkout.', 'woocommerce' );
echo wp_kses_post( apply_filters( 'woocommerce_shipping_estimate_html', __( 'This is only an estimate. Prices will be updated during checkout.', 'woocommerce' ) ) );
}
?>
</p>
<?php endif; ?>
<?php
elseif ( ! $has_calculated_shipping || ! $formatted_destination ) :
esc_html_e( 'Enter your address to view shipping options.', 'woocommerce' );
echo wp_kses_post( apply_filters( 'woocommerce_shipping_may_be_available_html', __( 'Enter your address to view shipping options.', 'woocommerce' ) ) );
elseif ( ! is_cart() ) :
echo wp_kses_post( apply_filters( 'woocommerce_no_shipping_available_html', __( 'There are no shipping methods available. Please ensure that your address has been entered correctly, or contact us if you need any help.', 'woocommerce' ) ) );
else :