Forum in maintenance, we will back soon 🙂
User role assignment.
Hi everyone, I have a question about the visibility logic plugin for controlling who sees content based on user role. I have a course page that I restricted to a 'premiumcourse' user role. I really want to understand when someone checks out from WooCommerce. Will the user role 'premiumcourse' be automatically applied so that they can access the course page?
Similarly to the point page, will the defined user role assigned to the point page be assigned to the user automatically after payment. i want to understand thanks.
Though for my course page, I asked ChatGPT to generate a code that will help assign user to the relevant user role that have access to the resources they paid for. Then I added it using the code snippet to my site. I don't know if what I am doing is right.
@jk Yes thats what the visibilty logic is for, you simply create a role and you can allow only users with this role to access a page or even only specific sections of the page. @admin shows examples and how to apply it in the SAAS course if you still didn't check it, do so. The idea will become more clear.
I didn't understand why you added a code snippet, and what its role is. If its to give users access to a page, you don't need a code snippet it can be done directly in the page when you install and activate the plugin.