Hide categories

Home Forums WC Vendors Free Support Hide categories

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.

https://docs.wcvendors.com/

Thank you to all of our customers!

 

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #77190
    face2005
    Participant

    Hi! Tell me how to solve the problem?
    Wrapped the wp vendor plugin and needed that the seller new could add the product only to a certain category. How to hide unnecessary categories? I tried this:

    add_action( 'admin_init', 'my_remove_cat' );
    function my_remove_cat() {
    
    global $user_ID;
    
    if ( current_user_can( 'vendor' ) ) {
    ?>
    
    $("#product_cat-16").hide();
    
    <?php 
    
    }
    }
    
    

    But he does not catch him. Tell me, guys, how to proceed.

    #77220
    Anna
    Keymaster

    Hello,
    We have an option to hide some categories from vendors in WC Vendors Pro, but not WC Vendors free.

    #77382
    face2005
    Participant

    And where can I test the PRO version?

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

This website uses cookies to ensure you get the best experience on our website.