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.9.5.1

apply_filters('woocommerce_cart_updated_notice_type') is found 1 times:

  • /includes/class-wc-form-handler.php line 722
    			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' ) );
    
    				if ( wp_get_referer() ) {
    					wp_safe_redirect( remove_query_arg( array( 'remove_coupon', 'add-to-cart' ), wp_get_referer() ) );
    					exit;
    				}
    			}