Ringier-Bus
A plugin to push events to the Ringier Event Bus when articles are created, updated or deleted. AUDIENCE This plugin is made for Ringier businesses using WordPress and wanting to benefit from Hexagon solutions available via the Ringier Event Bus. It can be implemented by developers and non-developer
A plugin to push events to the Ringier Event Bus when articles are created, updated or deleted.
AUDIENCE
This plugin is made for Ringier businesses using WordPress and wanting to benefit from Hexagon solutions available via the Ringier Event Bus. It can be implemented by developers and non-developers.
BENEFITS
The Hexagon solutions available via the Ringier Event Bus and compatible with this plugin include: – The syncing of articles with Sailthru media library, – The storage of article events in Ringier Datalake, from which they are retrieved by the Content Distribution Engine (CDE). You can also benefit from the Bus tooling such as event logging, event monitoring and alerting.
To learn more about Hexagon services, visit https://hexagon.ringier.com/services/business-agility/ .
HOW IT WORKS
The plugin automatically triggers events when articles are created, updated and deleted. Event names: ArticleCreated, ArticleUpdated and ArticleDeleted.
The events are scheduled to be sent to the Bus within a 1-minute delay . This is to allow WordPress to process the changes and update custom fields in the database, which is done asynchronously. You can view scheduled events by making use of the plugin “Advanced Cron Manager”.
Here is a summary of the events sent to the Bus: – If the article is newly created, we send it INSTANTLY – sent as ArticleCreated – But then we schedule it to run again after the normal 1 minute so that all custom data are sent properly – sent as ArticleUpdated – For all existing articles that undergo an update, we schedule the event to run after the 1 minute interval
The plugin also creates two mandatory custom fields, available on the article editor page under “Event Bus” widget: – The article lifetime (lifetime) – The publication reason (publication_reason)
We also expose custom filters to help you adjust these two fields and the payload sent to the BUS endpoint, see below.
LOGS
This plugin creates a log file ( ringier_bus_plugin_error_log ), saved inside the wp-content/ folder: The error messages are viewable via the admin UI by clicking on the submenu “LOG”. You also have the flexibility to clear the log file via the UI itself.
To inspect what is actually being sent, add define('RINGIER_BUS_DEBUG_PAYLOAD', true); to wp-config.php . Each dispatch then writes its exact JSON body to wp-content/buslog/payload-<created|updated|deleted>-<post_id>.json , before the request goes out. Off entirely without the constant.