How to setup & use multi data types

Last Updated: September 18, 2026

In eventon version 2.5 we have added multi data types (MDT) feature.

Benefits of MDT

MDT allows you to create an item once with details and values and reuse that item again and again for unlimited events without having to re-enter the item details and values.

#1. Activate MDT

Go into EventON settings > Categories and then under EventCard Multi Data Types you can activate the number of data types you need. Currently, by default it allows you to add up to 3 different types while this can be increased with a pluggable function. (filter name: evo_multi_data_type_count)

As you can see above; in this example, we are going to create an MDT called teacher. We are enabling images and 2 additional data fields. By default, each MDT item will support name and description fields.

#2. Create MDT items for an event

Let’s say for your event you want to add “Suzan Price” as a teacher for the event.

Go into the event you want to add an MDT (a teacher in our example). Go to event edit and then under the Event Details meta box you can find the new MDT section with the name you set for the MDT. (For our example it is Teacher)

Since you haven’t created any MDT items, you can do so by clicking the Create a new teacher (create a new {name}) button.

Once you click Save it will be saved to the event.

Alternatively, if you already have a bunch of MDT items (or teachers in our example) created for other events, you can select an item from the list by clicking Select from list button.

If you don’t have any items created this list will be blank and will ask you to create new items.

#3. Show in EventCard

Next, we need to make sure the MDT fields are set to show in the eventCard. Go into EventON settings > EventCard Design and enable the new MDT field and move it around to where you want it to show in the eventCard. (If its already enabled and still not showing, just moving it around the list and resaving it does the trick)

 

#4. Customization

You can customize the icon for the MDT field from EventON Settings > Icons

View on Front

Once all the data is entered the information will show like the below image on the event card for the event. (images are from EventON ver2.7)

Further Customization with WP Pluggable Filters

EventON provides a robust set of pluggable filters to allow developers to extend the core functionality of Multi-Data Types (MDT). By default, certain limits are placed on the quantity of data types and fields to ensure optimal performance and a streamlined UI. If your use case requires a more complex data structure, you can override these defaults using the following filters.

Increasing the Number of Multi-Data Types

By default, EventON allows for up to 3 multi-data types. If you need to accommodate more complex event configurations, you can use the evo_multi_data_type_count filter to increase this limit.

The filter expects an integer as a return value, representing the new maximum number of allowed multi-data types.

Example Implementation:

/**
 * Customizes the maximum number of Multi-Data Types allowed in EventON.
 *
 * @param int $count The default maximum number of multi-data types (3).
 * @return int The new total number of multi-data types allowed.
 */
function custom_eventon_extend_mdt_count( $count ) {
    // Increase the limit from 3 to 5 multi-data types
    return 5;
}
add_filter( 'evo_multi_data_type_count', 'custom_eventon_extend_mdt_count' );

Increasing the Number of Fields per Multi-Data Type

Each Multi-Data Type item is limited to a default number of fields. To allow for more granular data collection within a single MDT item, use the evo_multi_data_type_fields_count filter.

The filter expects an integer as a return value, representing the new total number of fields permitted per MDT item.

Example Implementation:

/**
 * Customizes the maximum number of fields allowed per Multi-Data Type item.
 *
 * @param int $count The default maximum number of fields per item (3).
 * @return int The new total number of fields allowed per MDT item.
 */
function custom_eventon_extend_mdt_fields_count( $count ) {
    // Increase the limit from 3 to 6 fields per MDT item
    return 6;
}
add_filter( 'evo_multi_data_type_fields_count', 'custom_eventon_extend_mdt_fields_count' );

Pro-Tip for Developers

When implementing these filters, ensure that you are returning an integer. If you are building a plugin that relies on these extensions, it is best practice to check if the filter is being applied or to use these hooks within your own plugin’s initialization to maintain compatibility with other EventON extensions.

Did this article help you?

Ready to Start Your Calendar?

65k+ Sites Use EventON

Start with Lite

Download Free

Or

Go Pro

Buy Full