Skip to content

Instantly share code, notes, and snippets.

@a1iraxa
Forked from ChromeOrange/functions.php
Created October 2, 2017 14:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save a1iraxa/232a45da05a3271b2c169bcca0867da6 to your computer and use it in GitHub Desktop.
Save a1iraxa/232a45da05a3271b2c169bcca0867da6 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