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:

About the author

Remi Hey! My name is Rémi Corson, I'm a French WordPress Developer, I code stuff and I write from time to time ;-) Buy a coffee
Show your support

Related Posts


  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