• Resolved sinzero

    (@sinzero)


    Hi there

    I have check your code

    $tabs[ ‘woo-variation-swatches-pro’ ]

    add_filter( ‘woocommerce_product_data_tabs’, ‘add_wvs_pro_preview_tab’ );

    How to remove it?

    function remove_linked_products($tabs){
    unset($tabs[‘woo-variation-swatches-pro’]);
    return($tabs);
    }
    add_filter( ‘woocommerce_product_data_tabs’, ‘remove_linked_products’, 10, 1 );
    remove_filter( ‘woocommerce_product_data_tabs’, ‘add_wvs_pro_preview_tab’ );

    Both seems doesn’t work
    Plase advice
    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Emran Ahmed

    (@emranahmed)

    On next release i made add_wvs_pro_preview_tab function as pluggable.

    try on plugins_loaded hook.

    Thank you

    Thread Starter sinzero

    (@sinzero)

    I’m looking forward to this new feature

    That will be very thoughtful

    Thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to remove Swatches Settings from product tabs’ is closed to new replies.