Is there a way to remove the ‘Add New’ link for logged in users in the dashboard? Logged in users see the Event Organiser dashboard through WordPress showing the above link. Is it possible to exclude that link?
I have the FES and that is a nice, clean professional way for Event Organisers to make submissions. The link they can see once logged in allows them to do the same, but it looks so untidy, and undermines the FES.
I have tried setting the permissions in EO, but the only way to exclude the Add New link excludes everything.
Chris Hirst
The ‘Add New’ link on the menu and the events admin page should only be visible for users who can ‘create events’. This capability was only introduced in WP 4.5 and Event Organiser doesn’t allow you to configure it. But you could map it to a capability only admins have (for instance).
See this answer for details: http://stackoverflow.com/a/16675677/932391 (that sets it to false
or do_not_allow
to prevent anyone from seeing the creating new posts – this shouldn’t effect FES though).
As for implementing that for Event Organiser:
add_filter( 'eventorganiser_event_properties', function( $args ) {
$args['capabilities']['create_posts'] = 'do_not_allow';
return $args;
} );
Stephen Harris