Home Forums WC Vendors Free Support Overide Product Form / Hide Categories for Specific Vendor.

NOTICE: We've Moved to a Ticket System for Support

As of August 31, 2017 (12am EST) our support forums will be retired (read-only), and we will be moving to a support ticket system.  This will allow us to better organize and answer support requests, and provide a more personalized experience as we assist our customers.

For the time being, we will leave our forums open for reading and learning while we work on creating a more robust Knowledge Base for everyone to use.

If you are a WC Vendors Pro customer please open a support ticket here. 

If you are a WC Vendors user please open a support ticket on the Wordpress.org forums.

The information on this forum is outdated and in most instances no longer relevant. Please be sure to check our documentation for the most up to date information.


Thank you to all of our customers!


Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #59368

    I want to hide a category – but allow just one of my vendors to use this.

    If it hide in Product Form -> Hide Categories

    can I put a bit of script to remove this category id from this list IF vendor_id = specific vendor id.

    I don’t mind hand coding this in functions.php but would appreciate a starting point.

    It will only ever be a few so again putting these rules into a php file is OK.


    I have gotten this far. but run out of steam tonight:

    BUT I cannot get the array_diff to knock out the value of the category, in this case 56, I cannot be too far out

    add_filter(‘wcv_product_categories’, ‘custom_wcv_product_categories’);
    function custom_wcv_product_categories( $args ){

    $args[‘exclude’][] = array_diff($args[‘exclude’][], [“56”]);

    return $args;

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘WC Vendors Free Support’ is closed to new topics and replies.