{"id":584,"date":"2018-09-29T08:44:10","date_gmt":"2018-09-29T08:44:10","guid":{"rendered":"https:\/\/webnus.site\/dox\/?p=584"},"modified":"2023-10-31T11:43:25","modified_gmt":"2023-10-31T11:43:25","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><span id=\"p0\">Including <span id=\"2-14\"><a href=\"http:\/\/webnus.net\" data-type=\"link\" data-id=\"webnus.net\">MEC<\/a> <\/span>in your theme means for seamless integration of both, you\u00a0<span id=\"15-16\">need<\/span>\u00a0to\u00a0<span id=\"17-18\">adjust<\/span>\u00a0dummy shortcodes. <\/span>If you&#8217;re going to include the Modern Events Calendar in your theme, then please use the following as a guide.<\/p>\n\n\n\n<p>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>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><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&#8217;re 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":[],"_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":2,"href":"https:\/\/webnus.net\/dox\/modern-events-calendar\/wp-json\/wp\/v2\/knowledgebase\/584\/revisions"}],"predecessor-version":[{"id":9849,"href":"https:\/\/webnus.net\/dox\/modern-events-calendar\/wp-json\/wp\/v2\/knowledgebase\/584\/revisions\/9849"}],"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}]}}