Hi
You wrote: ‘I checked again. To allow unlimited, return 0. The zero should be number not ‘0’.’
Do you mean just adding 0 in the settings, or in a new conditional statement for customers in the code, in that case, what is the user_id for customer?
Regards
CarstenHi Carsten,
In both the filters, we pass user id. So, It will be simple to check user role.Are you using WooCommerce’s customer role? I can provide a snippet for you .
Regards
BrajeshHi Carsten,
here is the role based message customizations.You can update the first function to add addition roles and their limits.
https://gist.github.com/sbrajesh/cc37e8794527f86046e1d880490d974b
Please make sure to remove the code from docs page that you applied erlier.
Regards
Brajesh
You must be logged in to reply to this topic.