Description
Koafer Events sends the events of your site to Koafer (koafer.com) through the Koafer ingestion API.
- Works with The Events Calendar (free) and Events Manager, and with home-made agendas: a custom post type with custom fields (ACF, JetEngine or plain post meta), described by a field mapping (
wp koafer generic scanlists the candidate fields,wp koafer generic previewshows what one post would send). - Manual mode (default): export screen (all events or filtered by category, dates or venue, with a preview and a progress bar), bulk action “Send to Koafer” in the events list, “Send now” on each event, and
wp koafer export. - Automatic mode: published events are sent when you publish or update them, removed from Koafer when you unpublish, trash or delete them, sent again when you republish them, and reconciled once a day. Category filters decide which events are synced.
- Recurring Events Manager events are sent as one Koafer event with all their dates.
- Your event categories are mapped to Koafer categories.
- Each event shows its Koafer status and a link once published; a sync log lists the last 200 operations.
- Test mode (sandbox): a new Koafer site starts in test mode. Koafer checks the events exactly as it would in production, but never publishes them. The plugin shows the mode on its screens and re-sends everything when Koafer switches the site to production (or back).
Koafer reviews new events before publication unless your organization is trusted for direct publication.
External services
This plugin connects to the Koafer API (https://api.koafer.com), a service run by Koafer, to publish the events of this site on koafer.com.
It only connects after an administrator has entered a Koafer API key and confirmed, in Koafer › Settings, that the site holds the rights to publish these events. Nothing is sent before that.
What is sent, and when:
- When you test the connection or refresh the Koafer categories: the API key only.
- When you send events (manually, or automatically in automatic mode when an event is published, updated, unpublished, trashed or deleted, and once a day for the reconciliation): for each event, its title, excerpt, description, dates and time zone, status (scheduled, cancelled, postponed), venue (name, address, postal code, city, country, coordinates), organizer (name, website, email, phone as entered on the event), cost, categories and tags, the URL of its featured image, its public URL, its ID on this site, its last modification date and the URL of this site. The daily reconciliation sends the IDs of the published events.
- For a home-made agenda, only the fields named in the field mapping are read and sent, with the same meaning (title, dates, venue…).
wp koafer generic scansends nothing: it prints a summary for the administrator to share if they wish, with emails and phone numbers masked. - The API key identifies this site; it is sent over HTTPS in an Authorization header.
No data about the visitors of this site is sent. Uninstalling the plugin does not contact Koafer.
Koafer terms of use: https://koafer.com/terms
Koafer privacy policy: https://koafer.com/privacy
Installation
- Install and activate the plugin (The Events Calendar or Events Manager must be active).
- In your Koafer organizer space, register your site and copy the API key.
- Koafer › Settings: paste the key, confirm the publication rights, then “Test the connection”. Choose manual or automatic sync.
- Koafer › Categories: “Refresh the Koafer categories”, then map your categories.
- Manual mode: Koafer › Export, or select events in the events list › “Send to Koafer”. Automatic mode: nothing else to do.
Automatic mode relies on WP-Cron. If your site disables it (DISABLE_WP_CRON), run wp cron event run --due-now from a system cron every few minutes.
Developers can point the plugin at another Koafer API with define( 'KOAFER_API_URL', 'https://…' ); in wp-config.php.
FAQ
What is test mode (sandbox)?
A new site starts in test mode on Koafer: your events are sent, validated and mapped exactly as in production, but they are never published. The mode is changed in your Koafer organizer space, not in the plugin; the plugin reads it on each connection test (and daily in automatic mode) and shows it in Koafer › Settings, Koafer › Export and on each event. When the mode changes, every event already sent is re-sent automatically in the new mode. Events sent in production stay on Koafer if the site goes back to test mode.
What happens when Koafer is unavailable?
Events are sent by batches of 10 (filter koafer_events_batch_size). When Koafer does not answer within 30 seconds, or cannot be reached, the batch is not marked in error: it is queued and retried after 1, 5, 15 and 60 minutes (5 attempts), then marked in error. This applies to manual exports too. When Koafer asks to slow down, the plugin waits as long as it is told to.
What if my API key is revoked?
Automatic sync pauses and a notice asks you to check the key. It resumes as soon as “Test the connection” succeeds.
Is my API key safe?
It is stored in the database without autoload, never shown again after saving (only its last four characters) and never written to the sync log.
Screenshots
Changelog
0.8.3
- The admin styles are enqueued by a closure registered in Plugin::boot() (no separate Ui callback any more).
0.8.2
- The plugin’s styles and scripts load on the list of events only, no longer on the lists of the other post types.
- Admin script loading no longer depends on the page hook being passed by whatever fires the hook.
0.8.1
- Security hardening: every HTML fragment printed by the admin screens and returned by the [koafer_guide] shortcode is filtered at output (wp_kses_post).
- Persistent Koafer notices (connection refused, reconciliation to confirm, events to fix) appear on the Koafer screens only, no longer across the whole dashboard.
- Translations are delivered by translate.wordpress.org; the plugin no longer bundles .po/.mo files.
- Database queries pass table names as %i identifiers of $wpdb->prepare(); WordPress 6.2 or later is now required.
0.8.0
- Events screen: every event of your agenda with its state on Koafer (sent, changed since sent, not sent, to fix, excluded by its category, removed), the action for each (fix, send now), counters that filter the list, “Send the N events” for those not sent or changed, folded filters (category, dates, venue, state) and pages for large agendas.
- Sending history in plain words, every send included (automatic, from the Events screen, “Send now”), filtered by result.
- Built-in user guide: a “Help” page in the Koafer menu (French and English), with a “Help” link on every Koafer screen opening the matching section; the same guide on a public page with the [koafer_guide] shortcode.
0.7.0
- Setup assistant on the Koafer home page until the setup is done, and again from Settings: connect the site (code, rights, immediate test), choose the agenda (detected ones first), check the preview, send in test mode, go live (decided in the Koafer organizer space). It resumes where it was left.
- Home-made agendas: “Where Koafer finds each piece of information” in the page, no file to exchange: the events are analysed and the table is pre-filled (field, same value for every event, date + time, date format, image from a field or from the description), with an example read from the most recent event; required information without a source is highlighted with a proposal (town from the site title). The settings file stays available as an advanced option.
- Preview: three events as Koafer would show them, with the problems by piece of information and a link to fix them; nothing is sent.
0.6.1
- Modern form controls on the Koafer screens and in the Koafer box, built on the native WordPress controls: buttons (main, secondary, text, danger) with a loading state, larger fields with the label above and the error under the field, lists with a chevron, on/off switches (categories sent, all day, Events Manager owner email), choice cards, one action bar per form.
- Connection code: “Show” button, and a clear message under the field when the code is incomplete. Deleting the saved code is a separate, confirmed button.
- Keyboard and screen readers: visible focus everywhere, 40 px click areas, switches announced as such; works right to left, with every admin colour scheme, with reduced motion and in Windows high contrast.
- Fix: the former Sync log and Categories addresses (0.5) redirect to their new place instead of an error.
0.6.0
- New admin: a Home screen (connection, test mode or online, events sent today, last send, events to fix with a link to each, events by state), then Events (send, sending history) and Settings in tabs (Connection, Your agenda, Categories, Automatic sending). The former Export, Categories and Sync log screens redirect there.
- Plain words: “connection code” instead of API key, “test mode”, “online”.
- Automatic sending: one “Send” checkbox per category, and a choice for categories created later; the former include / exclude settings are kept exactly.
- Koafer box in the editor: the event’s state as a badge with what to do, “Send now”, options folded. Events list: state badge.
- Koafer colours (logo orange kept for accents; darker shade for text), compatible with the admin colour schemes, keyboard and screen readers.
0.5.1
- Home-made agendas: an event whose start has a date but no time (date field, empty time field, date-time left at 00:00, JetEngine date timestamp) is sent as an all-day event, even when its end has a time.
- The analysis and the preview say clearly when no field gives the town (Koafer needs a town or coordinates); the suggested mapping proposes the town read from the site title, or a value to fill in, which is never sent as is.
- Settings: the automatic sync filters say they do not apply to the Export screen.
- Dates in the sync log and in the Koafer box follow the site’s date and time format.
0.5.0
- Home-made agendas (generic adapter): a field mapping (JSON, imported in the settings or with
wp koafer generic import-mapping) says which post field, custom field (ACF, JetEngine, post meta), term, image or fixed value fills each Koafer field. Dates in the formats of ACF and JetEngine (including timestamps), date and time fields combined, poster taken from the first image of a text field. - “Analyse and download” button in Koafer › Settings (and
wp koafer generic scan): a file listing the fields of your events, to send to Koafer to prepare the mapping.wp koafer generic previewshows what one event would send. - “Dates Koafer” fields in the Koafer box, for posts without a date field.
- Events source chosen in the settings (The Events Calendar, Events Manager or home-made agenda) instead of the first plugin detected.
- Prices: ages, durations and counts written next to a price are no longer read as prices (“5 € / gratuit -12 ans” is 0 to 5 €, not 5 to 12 €); a free rate for some gives a minimum price of 0; € in the text gives the currency.
- Automatic sync also follows custom field saves (ACF, JetEngine), changes made by scripts and imports, and scheduled unpublishing (e.g. PublishPress Future).
0.4.0
- The event’s own website is sent to Koafer as the event website (The Events Calendar “Event Website”), separately from the organizer’s site, which stays the fallback. Requires the Koafer API of 30 September 2026 or later.
- An “Event Website” on a known ticketing platform (HelloAsso, Billetweb, Weezevent, Eventbrite, Yurplan, Shotgun, Ticketmaster, Fnac Spectacles) is sent as the booking link instead, with the platform’s name. The list can be changed with the koafer_events_ticketing_platforms filter.
- New “Booking link” field in the Koafer box of the event editor (The Events Calendar and Events Manager): when filled, it is the booking link sent to Koafer.
- Events Manager: the website, phone and email are read from event attributes (names set in the Koafer settings); the event owner’s email can be sent when no attribute gives one (off by default); when EM bookings are open, the booking link is the event’s booking form.
- Values Koafer would refuse (an email or phone typed as free text, an address without a domain name…) are still left out, but now listed in the export result and in the Koafer box of the event instead of disappearing silently.
0.3.1
- Fix: the “Test the connection” button stayed disabled even with a stored key (a false “disabled” attribute still disables a button).
- The connection test now runs in place: loading state, then the site, organization, moderation, daily usage and Koafer mode shown under the button and announced to screen readers; the mode banner and its “checked on” date are refreshed, as with
wp koafer connection. - The test always uses the stored key: with a new key typed and not saved, it asks to save it first. Without a stored key the button is disabled and says why.
0.3.0
- Test mode (sandbox) support: the site’s mode is read from Koafer (connection test, daily reconciliation,
wp koafer connection) and shown on the settings and export screens and on each event. - When Koafer switches the mode, every event already sent is marked “to resend” and re-sent automatically through the sync queue; a notice explains it. Each event shows whether its last send was in test mode or live.
0.2.1
- Batches of 10 events and a 30 s timeout; a timeout or connection error queues the batch for a retry instead of marking its events in error.
- Export screen and wp-cli show the progress, batch by batch.
- The date filter selects the events that overlap the range (multi-day events starting before it or ending after it included).
0.2.0
- Automatic synchronisation (publish, update, unpublish, trash, delete, republish), with category filters.
- Daily reconciliation, with a confirmation step when many events would be removed.
- Retries with backoff, rate-limit and revoked-key handling, sync log.
- Events Manager support, including recurring events.
- Text domain koafer-events; uninstall removes all plugin data.
0.1.0
- First version: manual export of The Events Calendar events.




