Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Change Woocommerce tab title and/or description to something else - or nothing
<?php
/* This will change the heading (H2:Decstiption) within the description tab to product name
* @origin https://wp-pro.dk/guides/tilpas-woocommerce-faneblades-titel-og-overskrift
*/
add_filter( 'woocommerce_product_description_heading', 'eid_change_product_description_tab_heading', 10, 1 );
function eid_change_product_description_tab_heading( $title ) {
global $post;
return $post->post_title; //change to "" to remove text
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment