Limit Number of Products to Add to The Shop

Let’s say you want to limit the number of products that a client can add to his WooCommerce shop… You might want to do to that for various reasons… here is how to do it. Simply place that code in functions.php:

2 responses to “Limit Number of Products to Add to The Shop”

  1. […] similar, but I’m missing some WP variables to define any kind of product. I tried also with this code, but it doesn’t work in functions.php (no, I’m not using child […]

  2. rk111113

    Possible to update this script to suit the latest woocommerce version please?

Leave a Reply