woocomerce 2, renaming tabs
-
Hi i have tried the following code to rename tabs:
add_filter( 'woocommerce_product_tabs', 'woo_rename_tabs', 98 ); function woo_rename_tabs( $tabs ) { $tabs['description']['title'] = __( 'Details' ); return $tabs; }
}
and it works, but it doesnt if the tab doesn’t have any content, i get the following error:
Warning: call_user_func() expects parameter 1 to be a valid callback, no array or string given in something\wp-content\plugins\woocommerce\templates\single-product\tabs\tabs.php on line 35I got this code from this link, I am wondering what it could be:
https://docs.woothemes.com/document/editing-product-data-tabs/Thanks,
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘woocomerce 2, renaming tabs’ is closed to new replies.