Skip to content

Instantly share code, notes, and snippets.

@pmgarman
Created February 22, 2012 18:29
Show Gist options
  • Save pmgarman/1886509 to your computer and use it in GitHub Desktop.
Save pmgarman/1886509 to your computer and use it in GitHub Desktop.
WooCommerce Product Tabs
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