Title: PHP Error when renaming product tab
Last modified: December 8, 2020

---

# PHP Error when renaming product tab

 *  Resolved [asigno](https://wordpress.org/support/users/asigno/)
 * (@asigno)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/php-error-when-renaming-product-tab/)
 * Hi,
 * I’ve discoved an issue when renaming the product tabs.
 * I’m using the recommended code documented by Woocommerce to do this, and this
   issue is documented for the ‘The Additional Information tab’:
    [https://docs.woocommerce.com/document/editing-product-data-tabs/#section-6](https://docs.woocommerce.com/document/editing-product-data-tabs/#section-6)
 * AH01071: Got error ‘PHP message: PHP Warning: call_user_func() expects parameter
   1 to be a valid callback, no array or string given in /var/www/vhosts/domain.
   com/wp-content/themes/shopkeeper/woocommerce/single-product/tabs/tabs.php on 
   line 73’
 * But using the recommended code:
 * // Rename product tabs
    add_filter( ‘woocommerce_product_tabs’, ‘woo_rename_tabs’,
   98 ); function woo_rename_tabs( $tabs ) {
 * global $product;
 *  if( $product->has_attributes() || $product->has_dimensions() || $product->has_weight()){//
   Check if product has attributes, dimensions or weight
    $tabs[‘additional_information’][‘
   title’] = __( ‘Bike Specifications’ ); // Rename the additional information tab
   $tabs[‘description’][‘title’] = __( ‘Professional Reviews’ ); // Rename the description
   tab $tabs[‘reviews’][‘title’] = __( ‘User Reviews’ ); // Rename the reviews tab}
 *  return $tabs;
    }
 * There is no error if I just change the ‘additional_information’tab, but get the
   error if we add in renaming for description and reviews tabs.
 * Any ideas on what I should try changing?
 * Thanks
    Alex

Viewing 1 replies (of 1 total)

 *  [Siew](https://wordpress.org/support/users/kosiew/)
 * (@kosiew)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/php-error-when-renaming-product-tab/#post-13762412)
 * Hi there,
 * If you’re looking for custom code help, you might be able to find someone willing
   to volunteer their time and knowledge in the free PHP support forum at [PHP Builder](
   [http://board.phpbuilder.com/forumdisplay.php?2-General-Help](http://board.phpbuilder.com/forumdisplay.php?2-General-Help))
   or within the [Advanced WooCommerce]([https://www.facebook.com/groups/advanced.woocommerce/](https://www.facebook.com/groups/advanced.woocommerce/))
   group on Facebook.
 * I’m going to mark this as resolved – if you have any further questions, you can
   start a new thread.

Viewing 1 replies (of 1 total)

The topic ‘PHP Error when renaming product tab’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

 * [product tab](https://wordpress.org/support/topic-tag/product-tab/)
 * [renaming](https://wordpress.org/support/topic-tag/renaming/)

 * 1 reply
 * 2 participants
 * Last reply from: [Siew](https://wordpress.org/support/users/kosiew/)
 * Last activity: [5 years, 5 months ago](https://wordpress.org/support/topic/php-error-when-renaming-product-tab/#post-13762412)
 * Status: resolved