Created
August 31, 2012 12:20
-
-
Save ChromeOrange/3552082 to your computer and use it in GitHub Desktop.
Change Single Product Tab Titles and Headings
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
<?php | |
/** | |
* Tab Title filters do not work with WooCommerce 1.6.5.1 or lower | |
* Please download this zip file http://cl.ly/2Y3S3D3M3C23 , extract the 3 files and copy them to : | |
* wp-content/themes/YOUR_THEME/woocommerce/single-product/tabs/ | |
**/ | |
add_filter ( 'woocommerce_product_description_tab_title', 'custom_product_description_tab_title' ) ; | |
function custom_product_description_tab_title() { | |
return 'Description'; // Change Me! | |
} | |
add_filter ( 'woocommerce_product_description_heading', 'custom_product_description_heading' ) ; | |
function custom_product_description_heading() { | |
return 'Product Description'; // Change Me! | |
} | |
add_filter ( 'woocommerce_product_additional_information_tab_title', 'custom_product_additional_information_tab_title' ) ; | |
function custom_product_additional_information_tab_title() { | |
return 'Additional Information'; // Change Me! | |
} | |
add_filter ( 'woocommerce_product_additional_information_heading', 'custom_product_additional_information_heading' ) ; | |
function custom_product_additional_information_heading() { | |
return 'Additional Information'; // Change Me! | |
} | |
add_filter ( 'woocommerce_reviews_tab_title', 'custom_product_reviews_tab_title' ) ; | |
function custom_product_reviews_tab_title() { | |
return 'Test Reviews'; // Change Me! | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment