Hey Sania,
I was curious so I searched the code reference on https://woocommerce.github.io/code-reference/files/woocommerce-includes-class-wc-form-handler.html#source-view.623
You’ll need to hook into
'woocommerce_cart_item_removed_title'
so you would come up with something like this
add_filter( 'woocommerce_cart_item_removed_title', 'custom_remove_quotes_from_item_removed_title', 10, 2 );
function custom_remove_quotes_from_item_removed_title( $item_removed_title, $cart_item ) {
// Remove the quotes from the item name
$product_name = isset( $cart_item['data'] ) ? $cart_item['data']->get_name() : __( 'Item', 'woocommerce' );
$item_removed_title = apply_filters( 'woocommerce_cart_item_removed_title_without_quotes', $product_name, $cart_item );
return $item_removed_title;
}
basically the _x() function was removed
Hope this helps.