Woocommerce Product Add-ons – Strip label
-
Hi, I am using the Woocommerce product add-ons with products and have it all set up right.
I’m trying to output the values and have it working, but they are wrapped in tags and include the label. I would want to strip these.
CUrrent output:
<dl class="variation"> <dt class="variation-WebsiteDomain">Website Domain:</dt> <dd class="variation-WebsiteDomain"> <p> <a rel="nofollow" href="http://mytest.com">http://mytest.com</a> </p> </dd> </dl>
I would just like the value on it’s own, namely ‘http://mytest.com’.
Anyone had an experience with this before? The code I’m using to generate and display the variation data is:
$_product = apply_filters( 'woocommerce_subscriptions_order_item_product', $subscription->get_product_from_item( $item ), $item ); $item_meta = wcs_get_order_item_meta( $item, $_product ); if ( apply_filters( 'woocommerce_order_item_visible', true, $item ) ) { $item_meta->display(); }
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Woocommerce Product Add-ons – Strip label’ is closed to new replies.