Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM › Disable product tab in vendor page
Tagged: tab, vendor page
- This topic has 2 replies, 2 voices, and was last updated 5 years, 4 months ago by Sarmistha Chakraborty.
Viewing 1 reply thread
- AuthorPosts
- August 13, 2019 at 11:34 am #76423diegoParticipant
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
- August 17, 2019 at 9:54 am #77068diegoParticipant
up
- August 20, 2019 at 7:19 am #77441Sarmistha ChakrabortyMember
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.
- AuthorPosts
Viewing 1 reply thread
- You must be logged in to reply to this topic.