woocommerce_cart_updated_notice_type

woocommerce_cart_updated_notice_type

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

apply_filters('woocommerce_cart_updated_notice_type') is found 1 times:

  • /includes/class-wc-form-handler.php line 724
    			if ( ! empty( $_POST['proceed'] ) ) {
    				wp_safe_redirect( wc_get_checkout_url() );
    				exit;
    			} elseif ( $cart_updated ) {
    				wc_add_notice( __( 'Cart updated.', 'woocommerce' ), apply_filters( 'woocommerce_cart_updated_notice_type', 'success' ) );
    				$referer = remove_query_arg( array( 'remove_coupon', 'add-to-cart' ), ( wp_get_referer() ? wp_get_referer() : wc_get_cart_url() ) );
    				wp_safe_redirect( $referer );
    				exit;
    			}
    		}
    	}