I know how to restrict pages using the members and paid members in the UI. However I really need to do it in code. I want to restrict the event registration page and I cannot find an example anywhere to do be able to do this in code since this isn't a page I can set restrictions on in the ui. This is all I have so far. I can grab the user info but I don't know how to use that to restrict the page and let them be directed to the "only paid subscribers" that directs them to the plans to purchase page.