Home Forums WoodMart support forum I can't get this one off please

I can't get this one off please

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #316500

    benmuminov
    Participant

    I can’t get this one off

    Attachments:
    You must be logged in to view attached files.
    #316729

    Luke Nielsen
    Keymaster

    Hello,

    It is a default WooCommerce tab for products. In order to remove it, you need to add this code to the functions.php file in your child theme.

    if ( ! function_exists( 'wd_single_disable_additional_tab' ) ) {
        /**
         * Disable single product additional_tab.
         *
         * @param array $tabs Tabs array.
         * @return array
         */
        function wd_single_disable_additional_tab( $tabs ) {
            unset( $tabs['additional_information'] );
    
            return $tabs;
        }
    
        add_filter( 'woocommerce_product_tabs', 'wd_single_disable_additional_tab', 105 );
    }

    Kind Regards

Viewing 2 posts - 1 through 2 (of 2 total)