woocommerce_cart_item_removed_title

woocommerce_cart_item_removed_title

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

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_cart_item_removed_title') is found 1 times:

  • /includes/class-wc-form-handler.php line 639
     
    				$product = wc_get_product( $cart_item['product_id'] );
    
    				/* translators: %s: Item name. */
    				$item_removed_title = apply_filters( 'woocommerce_cart_item_removed_title', $product ? sprintf( _x( '“%s”', 'Item name in quotes', 'woocommerce' ), $product->get_name() ) : __( 'Item', 'woocommerce' ), $cart_item );
    
    				// Don't show undo link if removed item is out of stock.
    				if ( $product && $product->is_in_stock() && $product->has_enough_stock( $cart_item['quantity'] ) ) {
    					/* Translators: %s Product title. */
    					$removed_notice  = sprintf( __( '%s removed.', 'woocommerce' ), $item_removed_title );
    					$removed_notice .= ' <a href="' . esc_url( wc_get_cart_undo_url( $cart_item_key ) ) . '" class="restore-item">' . __( 'Undo?', 'woocommerce' ) . '</a>';