Created
December 28, 2017 09:47
-
-
Save aliciaiceland/087ea5eaad3003141ec4769ba3497631 to your computer and use it in GitHub Desktop.
Add to product details page
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
add_filter('woocommerce_product_tabs', 'add_my_tab'); | |
function add_my_tab($tabs){ | |
$tabs['details_tab'] = array( | |
'title' => 'New Tab', | |
'priority' => 1, | |
'callback' => 'tab_content', | |
); | |
return $tabs; | |
} | |
function tab_content(){ | |
global $product; | |
echo $product->get_description(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment