Support

Home Forums Event Espresso Premium WP user integration restricted by user types

WP user integration restricted by user types

Posted: June 5, 2015 at 2:37 pm

Viewing 5 reply threads


Russell

June 5, 2015 at 2:37 pm

Hi,

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.

Thanks


Garth

  • Support Staff

June 5, 2015 at 4:10 pm

Hi Russell,

How are you today?

In the event details can I restrict the override so that only site administrator can see it?

Are you referring to the front-end event details or the admin event editor?


Russell

June 5, 2015 at 11:41 pm

Hi Garath.

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.


Lorenzo Orlando Caum

  • Support Staff

June 6, 2015 at 12:16 pm

Hi Russell, are you referring to the metabox that appears in the event editor?

If not, could you please share a screenshot?

https://eventespresso.com/wiki/troubleshooting-checklist/#screenshots


Lorenzo


Russell

June 8, 2015 at 11:29 am

Its this box I want to block access to https://www.iwanttogotothat.com/user.jpg Thanks all 🙂


Tony

  • Support Staff

June 9, 2015 at 3:19 am

Hi Russell,

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.

Event Espresso