Hi there,
I am trying to wrap some content in a div, but when I render it, it is outputting the actual HTML.
This is the line I have:
add_filter( 'woocommerce_product_description_heading', 'rename_product_description_heading', 10, 1 );
function rename_product_description_heading( $heading ) {
return __( '<div class="myclass">Additional Information</div>', 'woocommerce' );
}
which is outputting:
<div class="myclass">Additional Information</div>
rather than wrapping it in the div.
Can anyone help me with wrapping the "Additional Information" text in a div?
Thank you :)