Title: Code snippet don’t work
Last modified: December 29, 2021

---

# Code snippet don’t work

 *  Resolved [ptuchos](https://wordpress.org/support/users/ptuchos/)
 * (@ptuchos)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/code-snippet-dont-work-2/)
 * Hi. I have a problem trying to remove the reviews and additional information 
   on product tabs via Code Snippets. I used the following code:
 * /**
    * Remove product data tabs */ add_filter( ‘woocommerce_product_tabs’, ‘woo_remove_product_tabs’,
   98 );
 * function woo_remove_product_tabs( $tabs ) {
 * unset( $tabs[‘description’] ); // Remove the description tab
    unset( $tabs[‘reviews’]);//
   Remove the reviews tab unset( $tabs[‘additional_information’] ); // Remove the
   additional information tab
 * return $tabs;
    }
 * And although it’s active the code doesn’t work at all. I’ve already tried putting//
   before the unset of the tab I want to remove and it stays the same. I’ve tried
   it without // too, and nothing changes. I’m using the “Hello” theme. Can it interfere?
   Or some other plugin? What could be the problem?

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [Abiola Ogodo](https://wordpress.org/support/users/oaoyadeyi/)
 * (@oaoyadeyi)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/code-snippet-dont-work-2/#post-15205424)
 * [@ptuchos](https://wordpress.org/support/users/ptuchos/)
 * To disable reviews, kindly see this guide: [https://iconicwp.com/blog/disable-woocommerce-product-reviews/#:~:text=You%20can%20disable%20product%20reviews,and%20uncheck%20Enable%20product%20reviews%20](https://iconicwp.com/blog/disable-woocommerce-product-reviews/#:~:text=You%20can%20disable%20product%20reviews,and%20uncheck%20Enable%20product%20reviews%20).
 * For additional product information tab, see this: [https://www.businessbloomer.com/woocommerce-remove-additional-information-tab/](https://www.businessbloomer.com/woocommerce-remove-additional-information-tab/)
 * If the custom codes don’t work:
 *     ```
       This kind of problem is usually caused by a conflict with your theme or with another plugin. 
        
       The best way to determine this is to:
       <ul>
       <li>Temporarily switch your theme to <a href="https://www.woocommerce.com/storefront/" target="_blank">Storefront</a></li>
       <li>Disable all plugins except for WooCommerce</li>
       <li>Repeat the action that is causing the problem</li>
       </ul>
   
       If you’re not seeing the same problem after completing the conflict test, then you know the problem was with the plugins and/or theme you deactivated. To figure out which plugin is causing the problem, reactivate your other plugins one by one, testing after each until you find the one causing conflict. <a href="https://docs.woocommerce.com/document/how-to-test-for-conflicts/">You can find a more detailed explanation on how to do a conflict test here.</a>
       ```
   
 *  Thread Starter [ptuchos](https://wordpress.org/support/users/ptuchos/)
 * (@ptuchos)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/code-snippet-dont-work-2/#post-15205500)
 * [@oaoyadeyi](https://wordpress.org/support/users/oaoyadeyi/)
 * I discovered the problem. I don’t want to just delete the reviews but put them
   elsewhere on the site instead of in the tabs. I use Ryviu and even though in 
   the plugin settings I have put the reviews not to show up in the tabs, they keep
   showing up, that’s why the codes weren’t working. Is there any code or solution
   to keep Ryviu active without appearing in the tabs?
 *  [Mirko P.](https://wordpress.org/support/users/rainfallnixfig/)
 * (@rainfallnixfig)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/code-snippet-dont-work-2/#post-15205576)
 * Hi [@ptuchos](https://wordpress.org/support/users/ptuchos/),
 * > Is there any code or solution to keep Ryviu active without appearing in the
   > tabs?
 * I’d recommend submitting a ticket for the Ryviu – Product Reviews for WooCommerce
   plugin on their forum to see if developers can answer your question.
 * [https://wordpress.org/support/plugin/ryviu/](https://wordpress.org/support/plugin/ryviu/)
 * Alternatively, there is a live support chat on their website [https://www.ryviu.com/](https://www.ryviu.com/).
 * Thanks.
 *  Thread Starter [ptuchos](https://wordpress.org/support/users/ptuchos/)
 * (@ptuchos)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/code-snippet-dont-work-2/#post-15205586)
 * Problem solved! Thank you.
 *  [Mirko P.](https://wordpress.org/support/users/rainfallnixfig/)
 * (@rainfallnixfig)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/code-snippet-dont-work-2/#post-15205648)
 * Great! Glad to know that the issue is resolved now.
 * Would you mind sharing your solution? Other WooCommerce users using the same 
   plugin might face a similar issue and benefit from knowing how to fix it.
 * Cheers.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Code snippet don’t work’ 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

 * [code snippet](https://wordpress.org/support/topic-tag/code-snippet/)
 * [css](https://wordpress.org/support/topic-tag/css/)
 * [unset](https://wordpress.org/support/topic-tag/unset/)

 * 5 replies
 * 3 participants
 * Last reply from: [Mirko P.](https://wordpress.org/support/users/rainfallnixfig/)
 * Last activity: [4 years, 5 months ago](https://wordpress.org/support/topic/code-snippet-dont-work-2/#post-15205648)
 * Status: resolved