Adding a custom text under the X button that removes items from cart
问题 With Wordpress and WooCommerce, I am trying to add a custom text "delete item" under the "x" in the shopping cart tthat removes items from cart. I tried to "inspect element" to find where this "x" text icon was located, but I am hitting a brick wall. Any suggestions on how I can find this, and amend the "x" button to include text underneath? Thanks. 回答1: add_filter('woocommerce_cart_item_remove_link', 'remove_icon_and_add_text', 10, 2); function remove_icon_and_add_text($string, $cart_item