-
Notifications
You must be signed in to change notification settings - Fork 0
/
functions.php
24 lines (17 loc) · 875 Bytes
/
functions.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
//rename woocommerce single product page tab
add_filter( 'woocommerce_product_tabs', 'woo_rename_tabs', 98 );
function woo_rename_tabs( $tabs ) {
$tabs['description']['title'] = __( 'Specifications' ); // Rename the description tab
$tabs['additional_information']['title'] = __( 'Ordering Information' ); // Rename the additional information tab
return $tabs;
}
add_filter( 'woocommerce_product_description_heading', 'rename_product_description_heading', 10, 1 );
function rename_product_description_heading( $heading ) {
return __( 'Specifications', 'woocommerce' );
}
add_filter( 'woocommerce_product_additional_information_heading', 'rename_product_additional_information_heading', 10, 1 );
function rename_product_additional_information_heading( $heading ) {
return __( 'Ordering Information', 'woocommerce' );
}
?>