How To Customize / Override The Template File

WP Event Manager Plugin has a “templates” directory which contains all the templates files for rendering views at the frontend side. This “templates” folder also includes the “form-fields” directory which contains all the form control template files.

Overriding template files via a theme
You can customize the template file by overriding it via your theme.
1. Create a new folder “wp-event-manager” inside your theme folder. e.g yourtheme/wp-event-manager.
For example, you want to override plugins/wp-event-manager/content-summary-event_listing.php, then you can copy this file into your theme/wp-event-manager. Here we have shown an example with the Twenty Twelve theme.

2. Update the custom version in the future to maintain compatibility if the files are updated in the core plugin. Hence the template file which needs to be customized should only be overwritten.
Overriding template files through code
WordPress Plugin developers can also override template files by applying the “event_manager_locate_template” filter.

This will return the template path which was going to be overridden.
Check here how –

More info about WP Event Manager:
WP Event Manager Channel:

🙋‍♂️ Have a question? Leave a comment below and I’ll do my best to respond.