Add woocommerce_checkout_skip_update_order_review_expired and woocommerce_checkout_skip_cart_is_empty_check filter calls.

This commit is contained in:
therealgilles 2018-05-23 20:08:14 +00:00
parent a07135ce9e
commit f7ec8c22de
2 changed files with 2 additions and 2 deletions

View File

@ -273,7 +273,7 @@ class WC_AJAX {
wc_maybe_define_constant( 'WOOCOMMERCE_CHECKOUT', true );
if ( WC()->cart->is_empty() ) {
if ( WC()->cart->is_empty() && !apply_filters( 'woocommerce_checkout_skip_update_order_review_expired', false ) ) {
self::update_order_review_expired();
}

View File

@ -222,7 +222,7 @@ class WC_Shortcode_Checkout {
wc_print_notices();
// Check cart has contents.
if ( WC()->cart->is_empty() ) {
if ( WC()->cart->is_empty() && !apply_filters( 'woocommerce_checkout_skip_cart_is_empty_check', false ) ) {
return;
}