Skip to content

Instantly share code, notes, and snippets.

@ChromeOrange
Created August 31, 2012 12:20
Show Gist options
  • Save ChromeOrange/3552082 to your computer and use it in GitHub Desktop.
Save ChromeOrange/3552082 to your computer and use it in GitHub Desktop.
Change Single Product Tab Titles and Headings
<?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