woocommerce_cart_item_removed_message

woocommerce_cart_item_removed_message

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

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_cart_item_removed_message') is found 1 times:

  • /includes/class-wc-cart-session.php line 186
    				 * @since 3.8.0
    				 * @param string     $message Message.
    				 * @param WC_Product $product Product data.
    				 */
    				$message = apply_filters( 'woocommerce_cart_item_removed_message', $message, $product );
    				wc_add_notice( $message, 'error' );
    				do_action( 'woocommerce_remove_cart_item_from_session', $key, $values );
    
    			} elseif ( ! empty( $values['data_hash'] ) && ! hash_equals( $values['data_hash'], wc_get_cart_item_data_hash( $product ) ) ) { // phpcs:ignore PHPCompatibility.PHP.NewFunctions.hash_equalsFound
    				$update_cart_session = true;
    				/* translators: %1$s: product name. %2$s product permalink */