Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-sales domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the better-click-to-tweet domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-amazon domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-stats domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114
Show Menu Items | Event Espresso - Staging Server

Support

Home Forums Event Espresso Premium Show Menu Items

Show Menu Items

Posted: September 17, 2013 at 9:28 am

Viewing 8 reply threads


Marco Genovese

September 17, 2013 at 9:28 am

Is it possible to show some menu items only after a user has been registered for a specific event?

For example: only if I register to the event ‘X’, menu items A and B become visible.


Marco Genovese

September 17, 2013 at 3:04 pm

Please, someone can answer me?


Garth

  • Support Staff

September 17, 2013 at 5:07 pm

Hi Marco,

That’s would not be a function within Event Espresso. I would use a membership plugin to control content based on their purchase/access.


Marco Genovese

September 18, 2013 at 3:14 am

Yeah I know that is not a feature in Event Espresso.
But can not a condition that, if the event id = 1, shows the menu items A and B, otherwise it will not show anything
Is there a simple way to achieve this condition?

I don’t think that I need a membership plugin to achieve this result.

Can you suggest some ideas?


Dean

  • Support Staff

September 18, 2013 at 4:11 am

Yes, but the user would need to be logged in, and registered for the events while logged in (WP User Integration would need to be active too).

This way the registration data is attached to that user. Then on the page, you could do a check against the database to see if that user has been registered to X event and if so display the data.

You would probably need to add a custom CSS class to the menu item/s and hide them with CSS and then on the check either add CSS in to display them or potentially use jQuery to do the same thing.

So, in short, yes it is possible, but it would require several functions being created in order to achieve it so there isn’t a “simple” way to do it.


Marco Genovese

September 18, 2013 at 6:09 am

Hi Dean,
thanks for the reply.
I’ll try to implement your suggestions.

I have another question but I’m going to create another topic
Thanks again.


Dean

  • Support Staff

September 19, 2013 at 12:22 am

No problem, this might help you out, its an old piece of code I wrote for someone that doesn’t do exactly what you need but queries the database in a similar way so it might be a base for your work. Please note that that code is “as is” and unsupported, it’s just an example.

https://gist.github.com/Apina/f11b5ce2db10f7b3bb93


Marco Genovese

September 19, 2013 at 2:58 am

Thank you very much!


Marco Genovese

September 19, 2013 at 5:46 am

I have resolved with WordPress Roles.
Thanks again for great support!

Viewing 8 reply threads

The support post ‘Show Menu Items’ 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.

Event Espresso - Staging Server