Home Forums WC Vendors Free Support How Many Vendors?

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
  • #67457


    How can I found out how many active vendors I have please? I mean, vendors with 1 or more live products?



    You’d have to write some custom code for this.
    Like you’d create a functions and use something like this:
    echo count( get_users( array( 'role' => 'vendor' ) ) )
    To obtain the number of vendors, and then possibly use the wordpress count_user_posts to get the number of posts for the vendors- and only return the vendors who have more than one post. https://codex.wordpress.org/Function_Reference/count_user_posts

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