- This topic has 5 replies, 2 voices, and was last updated 2 years, 4 months ago by .
Viewing 6 posts - 1 through 6 (of 6 total)
Viewing 6 posts - 1 through 6 (of 6 total)
- The forum ‘Generic’ is closed to new topics and replies.
Events Made Easy › Forums › Generic › Does not work for dynamic groups
Tagged: generic placeholders, groups
Hi Franky,
when people register for events on our site, they get assigned to different EME groups, depending on the event. I also created a dynamic EME group that contains all the individual groups.
Now I need to test if the logged-in user has regsitered for any event, and therefore is a member of this dynamic group. But the generic placeholder #_IS_USER_IN_GROUP only works for regular groups for me, not the dynamic one. Correct?
The workaround would be to list all the regular groups in the generic placeholder – but since this is prone to typos and harder to maintain than the dynamic group, I wanted to ask about it.
Thanks!
indeed, currently #_IS_USER_IN_GROUP doesn’t take dynamic groups into account. This should fix that (untested, so please do test and give feedback):
https://plugins.trac.wordpress.org/changeset/2770109/
You’re amazing – yes!
It totally works like a charm.
Thank you so much.
🙏🙏🙏
Thanks for testing 🙂
Also, make sure you test the scenario with users not logged in and/or not in the group.
And I also added some limited caching to it:
https://plugins.trac.wordpress.org/changeset/2770156/
Thanks again, caching never hurts – thank you!
I did the tests with logged out and not in the group already, and these all rendered the expected result.
Great work! Thanks again.