Last active
July 5, 2019 06:00
-
-
Save imran-khan1/58aa354d31c5f420337e582c20b1d5d3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
// Customize woocommerce product data tabs | |
function customize_woo_description_tab( $tabs ) { | |
$tabs['description']['callback'] = 'woo_description_tab_content'; // Custom description callback | |
return $tabs; | |
} | |
function woo_description_tab_content() { | |
echo '<h2>Custom Description</h2>'; | |
echo '<p>Here\'s a custom description</p>'; | |
} | |
add_filter( 'woocommerce_product_tabs', 'customize_woo_description_tab', 98 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment