How can I conditionally trigger force completion?
-
To restrict users on the profile page before they complete their profiles is a little too unfriendly. I want to make the users free to explore the site, only when they try to access certain pages should they be required to complete their profile. In my case, which is an online course site, the users should be able to explore the courses, only when they are trying to place an order should they get a message saying “complete your profile please” and be redirected to the profile editing page. Is this possible?
While writing this, I think of another approach. Maybe I can create a role for those who haven’t completed their profiles, and restrict this role from placing a woocommerce order. Inside your plugin, I think there must be an action once a user completes their profile, right?
- The topic ‘How can I conditionally trigger force completion?’ is closed to new replies.