Automattic\WooCommerce\Internal\ShopperLists
ShopperListRenderer::get_remove_icon_svg
Markup for the trash icon used in the remove-item button. Mirrors the trash icon from @wordpress/icons that the cart line item uses for wc-block-cart-item__remove-link, inlined here so SSR first paint matches what JS would render after hydration. currentColor lets the surrounding badge wrapper drive the fill.
Method of the class: ShopperListRenderer{}
No Hooks.
Returns
String.
Usage
$result = ShopperListRenderer::get_remove_icon_svg(): string;
ShopperListRenderer::get_remove_icon_svg() ShopperListRenderer::get remove icon svg code WC 10.9.1
public static function get_remove_icon_svg(): string {
return '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" aria-hidden="true" focusable="false"><path fill="currentColor" fill-rule="evenodd" clip-rule="evenodd" d="M12 5.5A2.25 2.25 0 0 0 9.878 7h4.244A2.251 2.251 0 0 0 12 5.5ZM12 4a3.751 3.751 0 0 0-3.675 3H5v1.5h1.27l.818 8.997a2.75 2.75 0 0 0 2.739 2.501h4.347a2.75 2.75 0 0 0 2.738-2.5L17.73 8.5H19V7h-3.325A3.751 3.751 0 0 0 12 4Zm4.224 4.5H7.776l.806 8.861a1.25 1.25 0 0 0 1.245 1.137h4.347a1.25 1.25 0 0 0 1.245-1.137l.805-8.861Z"/></svg>';
}