Parse error: syntax error…
-
Hello and thank you for your help in advance, my website is
https://floordesignrugs.com/
I was trying to remove/disable the “reviews tab” in woocommerce single product display pageI added this code at the bottom of my functions.php:
add_filter( 'woocommerce_product_tabs', 'wcs_woo_remove_reviews_tab', 98); function wcs_woo_remove_reviews_tabs($tabs) { unset($tabs['reviews']); return $tabs; }
then the error message below appeared:
“Parse error: syntax error, unexpected ’98’ (T_LNUMBER) in /home/content/p3pnexwpnas08_data03/05/2685705/html/wp-content/themes/sydney/functions.php on line 328”I then deleted those new lines of text i inputted but i am still receiving the same Parse error message. :/
code now looks like:
I tried closing it with a ?> and } but it still doesnt work…
[Large code excerpt removed by moderator per forum rules. Please use Pastebin for all large code excerpts. It works better anyway.]
- The topic ‘Parse error: syntax error…’ is closed to new replies.