Created
May 13, 2021 04:46
-
-
Save wbcomdev/59da535c7de45a7d211c77e854e6873c 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
| /** | |
| * Customize product data tabs. | |
| */ | |
| function wb_woo_custom_description_tab( $tabs ) { | |
| $tabs['description']['callback'] = 'wb_woo_custom_description_tab_content'; // Custom description callback. | |
| return $tabs; | |
| } | |
| /** | |
| * Customize product data tab content. | |
| */ | |
| function wb_woo_custom_description_tab_content() { | |
| echo '<h2>Custom Description</h2>'; | |
| echo '<p>Here\'s a custom description</p>'; | |
| } | |
| add_filter( 'woocommerce_product_tabs', 'wb_woo_custom_description_tab', 98 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment