Including MEC in your Theme

If you’re going to include Modern Events Calendar in your theme, then please use the following as a guide.

Including MEC in Theme

To include Modern Event Calendar plugin in your theme, you can simply use TGMPA plugin. It works completely fine with this plugin.

For better User Experience, MEC imports events and shortcodes upon activation. If you want to disable this feature for any reason, you can use the two following filters:

Disabling Dummy Events,

add_filter('mec_activation_import_events', '__return_false');

Disabling Dummy Shortcodes (Not Recommended if you’re not going to add your own shortcodes!).

add_filter('mec_activation_import_shortcodes', '__return_false');
0 Comments

No Comment.