1 const { registerCheckoutFilters } = window.wc.blocksCheckout; 2 3 const modifyItemName = (defaultValue, extensions, args) => { 4 5 const customStatus = extensions?.woo_custom_stock_status?.custom_status || ''; 6 7 // Return the name with a placeholder for stock status 8 return ` 9 <span class="cart-item-name">${defaultValue}</span> 10 ${customStatus} 11 `; 12 }; 13 14 registerCheckoutFilters('cart-item-extension', { 15 itemName: modifyItemName, 16 });
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.