Skip to content

Instantly share code, notes, and snippets.

@joseluis
Forked from jameskoster/functions.php
Created May 4, 2017 12:00
Show Gist options
  • Select an option

  • Save joseluis/5d90aedc1bc148e8063fea9cbf1dbe9b to your computer and use it in GitHub Desktop.

Select an option

Save joseluis/5d90aedc1bc148e8063fea9cbf1dbe9b to your computer and use it in GitHub Desktop.

Revisions

  1. @jameskoster jameskoster revised this gist Mar 11, 2013. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions functions.php
    Original file line number Diff line number Diff line change
    @@ -2,8 +2,8 @@

    function woo_remove_product_tabs( $tabs ) {

    unset( $tabs['description'] ); // Remove the description tab
    unset( $tabs['reviews'] ); // Remove the reviews tab
    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;
  2. @jameskoster jameskoster created this gist Mar 11, 2013.
    11 changes: 11 additions & 0 deletions functions.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    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;

    }