hide vendor product label collapse tabs

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 WC Vendors hide vendor product label collapse tabs

Viewing 1 reply thread
  • Author
    Posts
    • #107227
      ozkancol
      Participant

      i add plugin woocommerce advanced product labels
      i’m using it from admin page
      but store vendor page is visible ..i want to hide
      attached picture

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

      Hello,

      add_filter('wcfm_is_allow_wc_advanced_product_labels','check_wcfm_is_allow_wc_advanced_product_labels');
      function check_wcfm_is_allow_wc_advanced_product_labels($bool) {
      	$userid = get_current_user_id();
      	if(wcfm_is_vendor($userid)) {
      		$bool = false;
      	}
      	return $bool;
      }

      Add this code to your child theme’s functions.php
      In case you do not have child theme then add code using this plugin – https://wordpress.org/plugins/code-snippets/

      Thanks.

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