Remove Shipping from product dashboard

This topic contains 3 reply and 2 voices, and was last updated by Nayem 9 years, 3 months ago
Viewing 3 Posts - 1 through 3 (of 3 total)
Author Posts
August 1, 2015 at 11:19 am 64647
Nayem Hello, i need to remove shipping from the product dashboard, I looked in template tag and did not see this option. Can you please point me in the right direction?
August 1, 2015 at 3:43 pm 64694
Nayem Nayem

Hello,

Do you want to remove that tab from single product page or from seller dashbaord?

August 1, 2015 at 11:28 pm 64778
Donovan Donovan

I want to remove it from both

August 2, 2015 at 12:23 pm 64813
Nayem Nayem
add_filter( 'dokan_product_data_tabs', 'remove_shipping_menu');

    function remove_shipping_menu( $dokan_product_data_tabs){

        unset($dokan_product_data_tabs['shipping']);

        return $dokan_product_data_tabs;
}

/* Remove shippng tab from single product page*/

remove_action( 'woocommerce_product_tabs' ,'register_product_tab');

function remove_product_shipping_tab($tabs){

    unset($tabs['shipping']);
    return $tabs;
}

add_action ( 'woocommerce_product_tabs' , 'remove_product_shipping_tab');

Put those code in theme function.php file.

Thanks.

Viewing 3 Posts - 1 through 3 (of 3 total)