Create Recurring Event
Creates a recurring event with Events Calendar Pro, as a draft unless status is "publish": a first occurrence (title, start and end in the event's timezone) that repeats daily, weekly on chosen days, monthly or yearly, every N periods, ending after a number of occurrences or on a date, optionally skipping some dates. Saved through The Events Calendar's own event API with Events Calendar Pro's recurrence rule, so the calendar generates the occurrences itself; returns how many occurrences were generated and the first few dates, read back from the calendar. Undo by moving the event to the trash in the admin, which removes every occurrence. To change one occurrence, or a single event, use the The Events Calendar abilities (mosmcp/tec-update-event); venue IDs come from mosmcp/tec-create-venue.
Also known as: repeating event, recurring event, weekly class, event series, every Monday, monthly meetup.
| Property | Value |
|---|---|
| Ability slug | mosmcp/tec-create-recurring-event |
| Wire tool name | mosmcp__tec-create-recurring-event |
| Category | Events Calendar Pro (mosmcp-events-calendar-pro) |
| Plan | Pro |
Required access
| Requirement | Value |
|---|---|
| Capability | edit_tribe_events |
| Minimum default role | Administrator |
| Annotations | readOnly: false · destructive: false · idempotent: false · openWorld: false |
Input schema
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| title | string (min length 1) | Yes | — | The event title. |
| start | string | Yes | — | When the first occurrence starts: YYYY-MM-DD HH:MM in the event's timezone, or YYYY-MM-DD for an all-day event. It must itself fall on the pattern (for a weekly event, on one of the days). |
| end | string | Yes | — | When the first occurrence ends: YYYY-MM-DD HH:MM in the event's timezone, or YYYY-MM-DD for an all-day event. Every occurrence lasts as long as this one. |
| frequency | string (one of daily, weekly, monthly, yearly) |
Yes | — | How often it repeats. |
| interval | integer (1–30) | 1 |
Repeat every this many days, weeks, months or years. 1 means every one, 2 every other. | |
| days | string[] | — | Weekly only: the days of the week it happens on. Must include the start's day. Defaults to the start's day. | |
| monthly_by | string (one of day_of_month, weekday_of_month, last_weekday_of_month) |
— | Monthly only: "day_of_month" repeats on the start's date (the 15th), "weekday_of_month" on the start's weekday position (the third Tuesday), "last_weekday_of_month" on the last such weekday (the last Friday; the start must be the last one of its month). Defaults to "day_of_month". | |
| end_after | integer (2–500) | — | End after this many occurrences, counting the first. Give this or end_on. | |
| end_on | string | — | The last day it may happen, YYYY-MM-DD in the event's timezone. Give this or end_after. | |
| exclusions | string[] | — | Optional dates to skip, YYYY-MM-DD, each one a date the event would otherwise happen on (not the first occurrence). | |
| all_day | boolean | — | Whether each occurrence runs all day. All-day events take only the dates of start and end. | |
| timezone | string | — | The event's timezone, a name such as "Europe/London" or "America/New_York", or "UTC". Start, end and the dates are read in it. Defaults to the site's timezone. | |
| description | string | — | What the event is about. HTML is saved the way the editor saves it for this user. | |
| venue_id | integer (min 1) | — | The venue it takes place at, from mosmcp/tec-create-venue or an existing event. | |
| status | string (one of draft, pending, publish) |
draft |
Publishing status. Defaults to "draft", so nothing appears on the site until it is published. |
Output schema
| Field | Type | Required | Description |
|---|---|---|---|
| event_id | integer | Yes | |
| title | string | Yes | |
| status | string | Yes | |
| start | string | Yes | First occurrence start, Y-m-d H:i:s in the event's timezone. |
| end | string | Yes | First occurrence end, Y-m-d H:i:s in the event's timezone. |
| timezone | string | Yes | |
| all_day | boolean | ||
| venue_id | integer | 0 when the event has no venue. | |
| recurrence | object | Yes | |
| recurrence.frequency | string | Yes | |
| recurrence.interval | integer | Yes | |
| recurrence.days | string[] | ||
| recurrence.monthly_by | string | ||
| recurrence.end_after | integer | 0 when it ends on a date instead. | |
| recurrence.end_on | string | Empty when it ends after a number of occurrences instead. | |
| recurrence.exclusions | string[] | ||
| recurrence.rule | string | Yes | The iCalendar rule given to Events Calendar Pro. |
| occurrence_count | integer | Yes | Occurrences the calendar generated, read back after saving. |
| occurrences | object[] | Yes | The first occurrences, in the event's timezone. |
| occurrences[].start | string | Yes | |
| occurrences[].end | string | Yes | |
| last_occurrence | string | Start of the last generated occurrence. | |
| unapplied_exclusions | string[] | Dates asked to be skipped that still have an occurrence. | |
| view_url | string | ||
| edit_url | string | ||
| notes | string[] |
| << Previous | Next >> |
|---|---|
For more information about the Secure MCP Server for WordPress plugin, explore the following resources:
Product Overview | Pricing | Try for Free | Documentation
If you have any questions regarding plugin configuration, pricing plans or licensing, please contact us or mail us at aisupport@xecurify.com.