To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
The technical storage or access that is used exclusively for statistical purposes.
The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
Hi. Thanks for this. It’s very useful.
Is there a way to modify this one so that HTML tags in the title are not encoded into entities?
// Change the description tab heading to product name
add_filter( ‘woocommerce_product_description_heading’, ‘wc_change_product_description_tab_heading’, 10, 1 );
function wc_change_product_description_tab_heading( $title ) {
global $post;
return $post->post_title;
}
We’re using italics in some product titles, which generally works fine in most places, except this function where they are encoded into their HTML entities, and thus the italic tags are shown.
Thanks,
Michael
Hi Michael,
I apologize for not seeing your comment before now. Unfortunately, I’m afraid I don’t have an answer for you. But I’m going to look into it for you and see if I can find an answer. That said, if you’ve already come up with an answer, I’d love to know your solution!