{"id":584,"date":"2018-09-29T08:44:10","date_gmt":"2018-09-29T08:44:10","guid":{"rendered":"https:\/\/webnus.site\/dox\/?p=584"},"modified":"2026-11-17T07:01:18","modified_gmt":"2026-11-17T07:01:18","slug":"including-mec-in-your-theme","status":"publish","type":"knowledgebase","link":"https:\/\/webnus.net\/dox\/modern-events-calendar\/including-mec-in-your-theme\/","title":{"rendered":"Including MEC in Your Theme"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Including <a href=\"https:\/\/webnus.net\/\" target=\"_blank\" rel=\"noreferrer noopener\">MEC<\/a> in your theme means for seamless integration of both, you\u00a0need\u00a0to\u00a0adjust\u00a0dummy shortcodes. If you\u2019re going to include the Modern Events Calendar in your theme, then please use the following as a guide.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To include the Modern Events Calendar plugin in your theme, you can simply use the <a href=\"http:\/\/tgmpluginactivation.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">TGMPA plugin<\/a>. It works completely fine with this plugin.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For a 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:<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Disabling_Dummy_Events\"><\/span>Disabling Dummy Events<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\nadd_filter(&#039;mec_activation_import_events&#039;, &#039;__return_false&#039;);\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Disabling_Dummy_Shortcodes\"><\/span>Disabling Dummy Shortcodes<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Note: <\/strong>Not Recommended if you&#8217;re not going to add your own shortcodes!<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\nadd_filter(&#039;mec_activation_import_shortcodes&#039;, &#039;__return_false&#039;);\n<\/pre><\/div>","protected":false},"excerpt":{"rendered":"<p>Including MEC in your theme means for seamless integration of both, you\u00a0need\u00a0to\u00a0adjust\u00a0dummy shortcodes. If you\u2019re going to include the Modern Events Calendar in your theme, then please use the following as a guide. To include the Modern Events Calendar plugin in your theme, you can simply use the TGMPA plugin. It works completely fine with [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","template":"","knowledgebase_cat":[50],"class_list":["post-584","knowledgebase","type-knowledgebase","status-publish","hentry","knowledgebase_cat-developer-other"],"blocksy_meta":{"styles_descriptor":{"styles":{"desktop":"","tablet":"","mobile":""},"google_fonts":[],"version":8}},"_links":{"self":[{"href":"https:\/\/webnus.net\/dox\/modern-events-calendar\/wp-json\/wp\/v2\/knowledgebase\/584","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webnus.net\/dox\/modern-events-calendar\/wp-json\/wp\/v2\/knowledgebase"}],"about":[{"href":"https:\/\/webnus.net\/dox\/modern-events-calendar\/wp-json\/wp\/v2\/types\/knowledgebase"}],"author":[{"embeddable":true,"href":"https:\/\/webnus.net\/dox\/modern-events-calendar\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/webnus.net\/dox\/modern-events-calendar\/wp-json\/wp\/v2\/comments?post=584"}],"version-history":[{"count":1,"href":"https:\/\/webnus.net\/dox\/modern-events-calendar\/wp-json\/wp\/v2\/knowledgebase\/584\/revisions"}],"predecessor-version":[{"id":13999,"href":"https:\/\/webnus.net\/dox\/modern-events-calendar\/wp-json\/wp\/v2\/knowledgebase\/584\/revisions\/13999"}],"wp:attachment":[{"href":"https:\/\/webnus.net\/dox\/modern-events-calendar\/wp-json\/wp\/v2\/media?parent=584"}],"wp:term":[{"taxonomy":"knowledgebase_cat","embeddable":true,"href":"https:\/\/webnus.net\/dox\/modern-events-calendar\/wp-json\/wp\/v2\/knowledgebase_cat?post=584"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}