Limiting attributes

MultivendorX Pro

Open
Viewing 1 reply thread
  • Author
    Posts
    • #218668
      Pat Martin
      Participant

      Hi, is there a way that we can stop vendor’s for creating custom attributes for their products and only use the global attributes that admin have created in woocommerce? This is because the filter we use only uses global attributes and custom attributes will not be included in the filter.

    • #218681

      Hello @Shane Brennan, Thanks for getting in touch with us. Kindly add the below code in the functions.php file of your current active theme and check –

      
      add_filter('vendor_can_add_custom_attribute', '__return_false');
      
      Copy

      Let us know if you need any further assistance from our end.

Viewing 1 reply thread

Please LOGIN to reply to this topic