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:
Limit Number of Products to Add to The Shop
2 responses to “Limit Number of Products to Add to The Shop”
-
[…] 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 […]
-
Possible to update this script to suit the latest woocommerce version please?
Leave a Reply
You must be logged in to post a comment.