woocommerce_cart_item_removed_notice_type, success

woocommerce_cart_item_removed_notice_type, success

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.11.0.0

apply_filters('woocommerce_cart_item_removed_notice_type, success') is found 1 times:

  • /includes/class-wc-form-handler.php line 752
    					/* Translators: %s Product title. */
    					$removed_notice = sprintf( __( '%s removed.', 'woocommerce' ), $item_removed_title );
    				}
    
    				wc_add_notice( $removed_notice, apply_filters( 'woocommerce_cart_item_removed_notice_type', 'success' ) );
    			}
    
    			if ( wp_get_referer() ) {
    				wp_safe_redirect( remove_query_arg( array( 'remove_item', 'add-to-cart', 'added-to-cart', 'order_again', '_wpnonce' ), add_query_arg( 'removed_item', '1', wp_get_referer() ) ) );
    				exit;
    			}