call_user_func_array()
-
Hi there,
when i am using the product search on my website it comes up with this error:
Warning: call_user_func_array() expects parameter 1 to be a valid callback, no array or string given in /home/myhome/domains/myhome.com/public_html/wordpress/wp-includes/plugin.php on line 235
Line 235 contains this
$value = call_user_func_array($the_['function'], array_slice($args, 1, (int) $the_['accepted_args']));
I think i had this error before but don’t know where. I looked for the error on the forums and came across this.
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'] = __( 'Product Data' ); // Rename the additional information tab } return $tabs; }
Added that to my functions.php but without succes.
PHP is not my strongpoint so help is needed here ??
Thanks for your time,
Sjoerd
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘call_user_func_array()’ is closed to new replies.