Last active
March 6, 2019 16:56
-
-
Save ellegaarddk/98190d9ceb2a18338f7ada1d7d07e234 to your computer and use it in GitHub Desktop.
Change Woocommerce tab title and/or description to something else - or nothing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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