How to Add Extra Event Data to the JSON Output

November 12, 2021

The API addon is the go-to addon when you are looking to add extra meta data to the JSON array. In the below example we are going to add a subtitle for an event in the JSON data output.

To get started with this, paste this code into your main theme’s functions.php file

You can then make any other adjustments to this code. You can find all event post meta variable names here http://www.myeventon.com/documentation/event-post-meta-variables/

Once this is done the JSON string will include the subtitle field as you can see below.

Capture

 

Did this article help you? If not, send us a ticket via helpdesk

Ready to setup your calendar?