Last active
November 2, 2018 10:15
-
-
Save ellegaarddk/fb3366e59320785241d58ff8bd657e50 to your computer and use it in GitHub Desktop.
Change Woocommerce description tab title to product name
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 wil cheange the title (Description) of the description tab to product name | |
add_filter( 'woocommerce_product_tabs', 'eid_change_product_description_tab_title', 10, 1 ); | |
function eid_change_product_description_tab_title( $tabs ) { | |
global $post; | |
if ( isset( $tabs['description']['title'] ) ) | |
$tabs['description']['title'] = $post->post_title; | |
return $tabs; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment