Posted: August 9, 2023 at 12:59 pm
I can restrict the tickets based on roles and capabilities but is there a way to restrict event descriptions? Currently I use [members_logged_in] to hide information but anyone can see the content as long as they are logged in. I want to use the same capability as the ticket. currently for the ticket I’m using ee_read_private_events. Thanks! |
|
Also, where is [members_logged_in] defined? |
|
It looks like I have this customization. I can’t tell how it’s getting into the shortcode above. But looks like I can add another or statement to hide if user is “Subscriber Role”.
|
|
Thats not from Event Espresso, I’m guessing part of the customization you mentioned above but the code for it is not included there.
There must be more to that code, as it is that just some functions with nothing calling them? |
|
Yes, we call the functions in the ee event template in the child theme customization files. |
|
Ok, so a quick google search shows the https://members-plugin.com/docs/shortcodes/ Looking at the doc there it looks like it has the features you need for this? Or am I misunderstanding your question here? |
|
Okay, great! Looks like the code above I need to update to hide the ee sections, venue, people, etc and Members_logged_in is separate. The link you provided is exactly what I needed. Thanks! |
|
Awesome, I’m glad that helped 🙂 |
|
The support post ‘Restrict event details if no Member Role assigned’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.