The project should be relatively simple for a php developer.
I need a php function to unpublish all products for a specific user role in woocommerce (wordpress). I want to put the function in my child theme [login to view URL] file.
On my Wordpress site users can change user roles. Once a user role is changed (to subscriber), I want all the products belonging to this user to become unpublished.
Basically make all the products that the user published before to unpublished.
Hi, I can do it perfectly and can finish within a short time. Feel free to contact me on chat for more discussion ... Looking forward to your reply. Regards, Nand