Accepting User-Submitted Events
You don't have to add every event yourself. Events Manager can take submissions from your users, and from visitors with no account, through a form on your site. Each submitter can have a page listing their own events, and you decide whether submissions are published straight away or wait for your approval.
Three things control how this works:
- Capabilities decide which user roles may submit, and whether what they submit is published or held as pending.
- Pages and shortcodes decide where the submission form and the management list appear.
- Anonymous submissions decide whether visitors who are not logged in can submit.
Who can submit, and what happens to their events
What a user can do depends on the capabilities of their role, set in Events then Settings then General then User Capabilities.
| Role (default capabilities) | Can submit events | Published immediately |
|---|---|---|
| Administrator, Editor | Yes | Yes |
| Author, Contributor | Yes | No. Their events are saved as Pending until someone approves them. |
| Subscriber | No |
The capability that lets a role submit is edit_events. The one that lets it publish without approval is publish_events. To let subscribers submit events for your approval, tick edit_events for the Subscriber role and leave publish_events unticked. Tick upload_event_images as well if they should be able to add an image, and edit_locations if they should be able to add new locations.
When a user without publish_events edits one of their published events, it goes back to Pending and leaves the site until it is approved again.
Approving, and the emails sent at each stage, are covered in Event and Location Approval. All capabilities are listed in User Capabilities.
Choose where users submit
- On your site (front end)
- In wp-admin
Submitters never see wp-admin. The form and their list of events use your theme, on pages you choose. This is the usual choice for public sites. Set it up as described in the next section.
Any user whose role has edit_events can log in to wp-admin and use the Events menu, where they see the same editor you do, limited to what their role allows. Nothing needs setting up. This suits a small team of trusted contributors.
Set up front-end submission
You can add a form on its own, a full management page, or both.
A submission form on any page
Add the [event_form] shortcode to a page. It shows the event form and nothing else. Theme developers can call em_event_form() in a template for the same result.
A My Events page
A management page gives each logged-in user a list of their own events, with the form built in for adding and editing.
-
Create a page in Pages then Add New, for example "My Events". Leave its content empty and publish it.
-
Go to Events then Settings then Pages then Other Pages and find Front-end management pages.
-
Choose your page under Edit events page.
-
Optionally create and choose two more pages: Edit locations page, where users manage the locations they created, and Manage bookings page, where they manage the bookings for their own events.
-
Save, then link to the pages from your menu.
Each dropdown takes an ordinary, empty page.
If BuddyPress is active, it provides these screens in members' profiles and these page settings are not used. See BuddyPress.
What submitters see
The My Events list
A logged-in user who can submit events sees their events on the Edit events page.
The management list. Pending and Draft tabs only appear when there is something in them.
| Part | What it does |
|---|---|
| Upcoming, Pending, Draft, Past Events tabs Since 7.5 | Switch between published future events, events waiting for approval, drafts, and events that have ended. Each tab shows a count. Pending and Draft are hidden when empty. |
| Add New | Opens the submission form. |
| Search box | Searches the user's events by name. |
| My Events / All Events | Shown to users who can edit other people's events, to switch between their own events and everyone's. |
| Event name | Opens the event in the form for editing. Under it are a Bookings link with the spaces booked, if the event takes bookings, and a Delete link if the user's role may delete events. |
| + | Duplicates the event. |
The list shows 20 events per page, with page links above and below the table when there are more.
Someone who is not logged in, or whose role can't submit events, sees You must log in to view and manage your events. in place of the list. If anonymous submissions are on, visitors who are not logged in see the submission form instead.
The submission form
The form follows the same order as the event editor in wp-admin.
| Section | Contents |
|---|---|
| Your Details | Name and Email. Shown only to guests, when anonymous submissions are on. |
| Event Name | The title. |
| When | Dates, times and timezone, as in the event editor. If recurring and repeating events are both enabled, a dropdown offers Single, Recurring or Repeating. Otherwise a checkbox makes the event recurring. |
| Where | The location type and venue details. Submitters can add a new location unless Use dropdown for locations? is on or their role lacks edit_locations. |
| Details | The description, any attributes you have defined, and a Category selector. |
| Event Image | An upload field, for roles with upload_event_images. |
| Bookings/Registration | Tickets and booking options, for roles with manage_bookings. |
The button reads Submit Event for a new event and Update Event for an existing one. Tags and organizers are not on the form. Add those in wp-admin when you review the event.
A location added along with an event is held as pending too, and is published automatically when the event is approved.
Form settings
Events then Settings then General then Event Submission Forms has these options.
| Setting | Default | What it does |
|---|---|---|
| Use Visual Editor? | Yes | Gives submitters the WordPress editor for the description. With No they get a plain text box that accepts HTML. |
| Show form again? | Yes | After a successful submission, shows an empty form under the success message so another event can be added. With No, only the message shows. |
| Success Message | You have successfully submitted your event, which will be published pending approval. | Shown to a logged-in user after submitting. |
| Successfully Updated Message | You have successfully updated your event, which will be republished pending approval. | Shown after a logged-in user edits an event. |
Both messages accept event placeholders, so you can include #_EVENTNAME for example. If your submitters can publish without approval, reword the messages to match.
Accept events from visitors without an account
Anonymous submissions let anyone send you an event without logging in. The form asks for their name and email address, and the event is filed under a user account you nominate.
-
Create a WordPress user to hold guest submissions, for example "Guest Submissions". Give it a strong password that nobody uses. Guests get the same event permissions as this user, so choose a role that can submit events (
edit_events) but can't publish them, such as Contributor. -
Go to Events then Settings then General then Event Submission Forms, to the Anonymous event submissions section.
-
Set Allow anonymous event submissions? to Yes.
-
Choose the account under Guest Default User.
-
Adjust the Success Message guests see, and save.
Guests can't see or change an event after submitting it, so the success message is their only confirmation on screen. When you open a guest's event in wp-admin, an Anonymous Submitter Info box shows the name and email they entered. The approval email goes to that address.
A public form with no login attracts automated submissions. Keep guest events pending, by using a guest account that can't publish, and review them before they go live.
Notifications
To be emailed when an event is submitted, enter one or more addresses, separated by commas, in Administrator Email in Events then Settings then Emails then Event Submission Templates. Submitters are emailed when their event is approved. The templates and when each is sent are described in Event and Location Approval.
Locations and bookings pages
- The Edit locations page lists the locations a user created under My Locations, with an All Locations view for roles that can use other people's locations, and an Add New button. Visitors who are not logged in see You must log in to view and manage your locations.
- The Manage bookings page gives users with
manage_bookingsthe bookings screens for their own events: approving, rejecting and exporting. See Manage bookings.
Troubleshooting
A logged-in user sees "You must log in to view and manage your events."
Their role does not have the edit_events capability. Subscribers don't by default. Tick it in Events then Settings then General then User Capabilities.
Submitted events don't appear on the site
They are pending. Approve them in Events then Events, or give the role publish_events to skip approval.
An approved event disappeared after its owner edited it
Editing sends it back to Pending for roles without publish_events. Approve it again.
There is no image upload or bookings section on the form
The submitter's role lacks upload_event_images or manage_bookings.
I get no email when an event is submitted
Administrator Email is empty, which turns the notifications off, or the email's subject line has been cleared.