• Resolved anthonyb04

    (@anthonyb04)


    I would like to hide the ‘additional information’ part of the product caracteristics – while keeping the other tabs (description…).

    I tried this code :

    //Remove the additional information tab
    function woo_remove_product_tab($tabs){
    	unset($tabs['additional_information']);
    	return $tabs;
    }
    add_filter('woocommerce_product_tabs','woo_remove_product_tabs',98);

    But it basically delete all the tabs (description, reviews…)

    Thanks again & forever ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @anthonyb04 I tried the code you provide works on my end, can you try the code like this without function name to avoid possible name conflicts;

    add_filter( 'woocommerce_product_tabs', function ( $tabs ) {
        unset( $tabs['additional_information'] );
        return $tabs;
    }, 99 );
    Thread Starter anthonyb04

    (@anthonyb04)

    Thanks you are right it works now !
    Don’t know what was wrong in the function but still it works ??
    Thanks to you

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Hide’ is closed to new replies.