I have set up user integration to force users to log in before buying tickets. That’s working like a dream ?
In the event details can I restrict the override so that only site administrator can see it?
I have already set up a separate user group and restricted access to the parts of ee and wp I don’t want them to have access to. User integration customisation is the only bit I can’t figure out.
Im talking about the override option in the wp backend when creating or editing an event.
I have a wp user group as administrator and another one set up as event manager. I want to stop the event managers seeing the user settings that would allow them to change the requirements for a user to be logged in to register for an event.
Currently there is no option to allow you to do this, however you can use something like this:
function ee_remove_wp_user_meta() {
if ( !current_user_can( 'manage_options' ) ) {
remove_meta_box( 'eea_wp_user_integration', 'espresso_events', 'side' );
}
}
add_action('do_meta_boxes', 'ee_remove_wp_user_meta');
Use that within a Site Specific Plugin and that EE user integration setting meta box will be removed for any user that does not have the manage_options capabilities (administrator accounts should usually have this)
Viewing 5 reply threads
The support post ‘WP user integration restricted by user types’ 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.
Support forum for Event Espresso 3 and Event Espresso 4.