Skip to content

Instantly share code, notes, and snippets.

@dwiash
Created May 24, 2013 03:02
Show Gist options
  • Save dwiash/5641024 to your computer and use it in GitHub Desktop.
Save dwiash/5641024 to your computer and use it in GitHub Desktop.
Add a custom tab to woocommerce product page
<?php
add_filter('woocommerce_product_tabs', 'lame_custom_product_tab_filter', 123);
function lame_custom_product_tab_filter($args){
$args[] = array(
'title' => 'Custom tab',
'priority' => 999,
'callback' => 'lame_custom_product_tab'
);
return $args;
}
function lame_custom_product_tab(){
echo "this is the value";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment