Created
December 12, 2018 20:13
-
-
Save alexmustin/bd5b46f669de3f2df5dd43245f540b2b to your computer and use it in GitHub Desktop.
WooCommerce - Custom Reviews tab content
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 product data tabs | |
| */ | |
| add_filter( 'woocommerce_product_tabs', 'woo_custom_reviews_tab', 98 ); | |
| function woo_custom_reviews_tab( $tabs ) { | |
| $tabs['reviews']['callback'] = 'show_custom_reviews_tab_content'; // Custom description callback | |
| return $tabs; | |
| } | |
| function show_custom_reviews_tab_content() { | |
| echo '<h2>TESTING</h2>'; | |
| echo '<p>You can put anything in this space...</p>'; | |
| } | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment