Disable product tab in vendor page

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Multi Vendor Marketplace Plugin | WCFM Marketplace Forums WCFM Disable product tab in vendor page

Tagged: ,

Viewing 1 reply thread
  • Author
    Posts
    • #76423
      diego
      Participant

      Hello,
      in the vendor store page, I want to disable the product tab and make the about tab the default.

      How should I do?

      I tried this code, but it doesn’t work as I want.

      add_filter( 'wcfmmp_store_tabs', function( $store_tabs, $store_id ) {
          if( isset( $store_tabs['products'] ) ) unset( $store_tabs['products'] );
          return $store_tabs;
      }, 50, 2 );

      Thanks a lot

    • #77068
      diego
      Participant

      up

      • #77441

        Hi,

        Try this code to hide the products tab on the vendor’s store page

        add_filter( 'wcfmmp_store_tabs', 'new_wcfmmp_store_tabs',90,2);
        function new_wcfmmp_store_tabs($store_tabs, $vendor_id) {
            unset($store_tabs['products']);
            return $store_tabs;
        }
        add_filter('wcfmp_store_default_query_vars',function($tab,$vendor_id){
           return 'about';   
        },20,2);

        Update the plugins(WCFM Marketplace) before adding this code.
        Let me know if it is ok.

        Thank You for your patience.

Viewing 1 reply thread
  • You must be logged in to reply to this topic.