Created
February 22, 2012 18:29
-
-
Save pmgarman/1886509 to your computer and use it in GitHub Desktop.
WooCommerce Product Tabs
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
add_action('woocommerce_product_tabs','tab_name'); | |
add_action('woocommerce_product_tab_panels','tab_panel'); | |
function tab_name() { | |
echo '<li><a href="#tab-name">Tab Name</a></li>'; | |
} | |
function tab_panel() { | |
echo '<div class="panel" id="tab-name">'; | |
echo '<h2>This is a cool tab</h2>'; | |
echo '<p>Why yes it is.</p>'; | |
echo '</div>'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment