{"id":1896660,"date":"2019-10-18T13:19:47","date_gmt":"2019-10-18T17:19:47","guid":{"rendered":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/best-practices-for-implementing-custom-code-snippets\/"},"modified":"2025-02-25T13:59:04","modified_gmt":"2025-02-25T18:59:04","slug":"best-practices-for-implementing-custom-code-snippets","status":"publish","type":"post","link":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/best-practices-for-implementing-custom-code-snippets\/","title":{"rendered":"Using Custom Code Snippets"},"content":{"rendered":"\n<p>When we refer to &#8220;snippets&#8221; in this context, we mean small pieces of PHP code. There are three basic ways to add these PHP snippets to your WordPress site:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Using a Functionality Plugin:<\/strong><br>This is the best practice to prevent possible conflicts. A <a href=\"https:\/\/css-tricks.com\/wordpress-functionality-plugins\/\">functionality plugin<\/a> is a custom plugin you create to add your PHP code. This keeps your snippets separate from your theme, ensuring they won&#8217;t be lost if you change themes.<\/li>\n\n\n\n<li><strong>Adding to a Child Theme\u2019s <code>functions.php<\/code> File:<\/strong><br>If the snippet is specific to your theme, it&#8217;s best to use a child theme. First, make sure you have a child theme set up, then add your PHP snippet to the <a href=\"https:\/\/developer.wordpress.org\/themes\/advanced-topics\/child-themes\/#using-functions-php\">child theme&#8217;s <code>functions.php<\/code> <\/a>file. This way, your custom code stays intact even if the parent theme is updated.<\/li>\n\n\n\n<li><strong>Using a Plugin like Code Snippets:<\/strong><br>For a simpler approach, you can use a plugin like &#8220;<a href=\"https:\/\/wordpress.org\/plugins\/code-snippets\/\">Code Snippets<\/a>.&#8221; This plugin allows you to add PHP snippets directly from the WordPress dashboard without needing to edit files.<\/li>\n<\/ol>\n\n\n\n<p>Other than knowing where to implement a code snippet, there are additional things to take into consideration when adding custom code for your calendar to your site. Many WordPress tutorials \u2014 including our ours \u2014 provide snippets of code used for demonstration purposes. It&#8217;s totally fine to copy and paste those for your own use. But when you do, you&#8217;ll want to make sure you check a couple of things.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"tips\">Remove the opening PHP tag<\/h2>\n\n\n\n<p>PHP code snippets often start with an opening PHP tag. like this:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; highlight: [1]; title: ; notranslate\" title=\"\">\n&lt;?php\n  \/* Some code *\/\n?&gt;\n<\/pre><\/div>\n\n\n<p>Chances are that your theme already has that opening PHP tag. So the one included in the snippet is totally unnecessary for use, and can actually break your site.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"garbled\">Watch out for garbled code<\/h2>\n\n\n\n<p>Many people use <a rel=\"noopener noreferrer\" href=\"https:\/\/gist.github.com\/\" target=\"_blank\">GitHub Gists<\/a> or similar sites like <a rel=\"noopener noreferrer\" href=\"https:\/\/pastebin.com\/\" target=\"_blank\">Pastebin<\/a>, <a rel=\"noopener noreferrer\" href=\"https:\/\/www.cacher.io\/\" target=\"_blank\">Cacher.io<\/a>, or <a rel=\"noopener noreferrer\" href=\"https:\/\/gitlab.com\/explore\/snippets\" target=\"_blank\">GitLab Snippets<\/a>. They&#8217;re a convenient way to share code. At the same time, it&#8217;s possible that simply copying and pasting the code from one of these services will result in unescaped, or &#8220;garbled&#8221; code.<\/p>\n\n\n\n<p>Here&#8217;s what we mean:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ This...\n$this-&gt;method_name()\n\n\/\/ ...might paste like this:\n$this-&amp;gt;method_name()<\/code><\/pre>\n\n\n\n<p>See that <code>&amp;gt;<\/code> in the code? That&#8217;s the unescaped HTML for the &#8220;greater than&#8221; (<code>&gt;<\/code>) sign. It&#8217;s subtle, but can also break your site.<\/p>\n\n\n\n<p>Another possible formatting issue: <strong>quotation marks<\/strong>. There are actually two types of quotation marks in HTML: curly and plain.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Curly quote: \u201cThe quick brown fox...\u201d\nCurly single quote: \u2018The quick brown fox...\u2019\nPlain quote: \"The quick brown fox...\"\nPlain single quote: 'The quick brown fox...'<\/code><\/pre>\n\n\n\n<p>See the difference? Again, it&#8217;s subtle, but curly quotes are unsupported in code. So, watch for those when copying and pasting and ensure that your snippets always use plain quotes.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"snippets\">CSS snippets<\/h2>\n\n\n\n<p>Everything we&#8217;ve looked at so far concerns PHP snippets. But let&#8217;s say you&#8217;re working with a CSS or JavaScript snippet instead.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">The <code>style.css<\/code> file<\/h3>\n\n\n\n<p>A CSS snippet can go straight into your theme&#8217;s <code>style.css<\/code> file if you are using your own custom theme. However, if you are using a theme you downloaded or purchased, then you will want to make a child theme and paste the CSS snippet in the child theme&#8217;s <code>style.css<\/code> file instead. This ensures your custom code is preserved when installing theme updates.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">The WordPress Customizer<\/h3>\n\n\n\n<p>Another way to add custom CSS is to paste it in the WordPress Customizer. Since WordPress 4.7, the Customizer includes a &#8220;<a href=\"https:\/\/codex.wordpress.org\/CSS#Custom_CSS_in_WordPress\">Custom CSS<\/a>&#8221; section that allows you to post code there instead of putting it in a theme&#8217;s <code>style.css<\/code> file.<\/p>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image size-large\"><a href=\"\/knowledgebase\/wp-content\/uploads\/2021\/01\/customizer-custom-css-tab.png\"><img decoding=\"async\" src=\"\/knowledgebase\/wp-content\/uploads\/2021\/01\/customizer-custom-css-tab-1024x647.png\" alt=\"\" class=\"wp-image-1949028\"\/><\/a><figcaption class=\"wp-element-caption\">The &#8220;Custom CSS&#8221; tab<\/figcaption><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image size-large\"><a href=\"\/knowledgebase\/wp-content\/uploads\/2021\/01\/customizer-custom-css-panel.png\"><img decoding=\"async\" src=\"\/knowledgebase\/wp-content\/uploads\/2021\/01\/customizer-custom-css-panel-1024x651.png\" alt=\"\" class=\"wp-image-1949027\"\/><\/a><figcaption class=\"wp-element-caption\">The &#8220;Custom CSS&#8221; panel<\/figcaption><\/figure>\n<\/div>\n<\/div>\n\n\n\n<p>Using the WordPress Customizer for CSS snippets is a super safe way to go, especially if you are uncomfortable or unable to access your theme&#8217;s files.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-full-site-editor\">Full Site Editor<\/h3>\n\n\n\n<p>If you have a Full Site Editor theme, here are the steps to add Additional CSS:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Go to your WordPress dashboard and select Appearance &gt; Editor<\/li>\n\n\n\n<li>Select &#8220;Styles&#8221;<\/li>\n\n\n\n<li>Select the &#8220;Edit Styles&#8221; icon next the Styles header<\/li>\n\n\n\n<li>Select the &#8220;More&#8221; three vertical dots in the Styles menu in the right sidebar, then select &#8220;Additional CSS&#8221;<\/li>\n\n\n\n<li>Enter your Additional CSS<\/li>\n<\/ol>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<h6 class=\"wp-block-heading\" id=\"h-1\">1.<\/h6>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"323\" height=\"91\" src=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2024\/07\/FSE-CSS-1.png\" alt=\"\" class=\"wp-image-1961734\" srcset=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2024\/07\/FSE-CSS-1.png 323w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2024\/07\/FSE-CSS-1-300x85.png 300w\" sizes=\"auto, (max-width: 323px) 100vw, 323px\" \/><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<h6 class=\"wp-block-heading\" id=\"h-2\">2.<\/h6>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"475\" src=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2024\/07\/FSE-CSS-2-1024x475.png\" alt=\"\" class=\"wp-image-1961735\" srcset=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2024\/07\/FSE-CSS-2-1024x475.png 1024w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2024\/07\/FSE-CSS-2-300x139.png 300w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2024\/07\/FSE-CSS-2-768x356.png 768w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2024\/07\/FSE-CSS-2-1536x713.png 1536w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2024\/07\/FSE-CSS-2.png 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<h6 class=\"wp-block-heading\" id=\"h-3\">3.<\/h6>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"475\" src=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2024\/07\/FSE-CSS-3-1024x475.png\" alt=\"\" class=\"wp-image-1961736\" srcset=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2024\/07\/FSE-CSS-3-1024x475.png 1024w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2024\/07\/FSE-CSS-3-300x139.png 300w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2024\/07\/FSE-CSS-3-768x356.png 768w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2024\/07\/FSE-CSS-3-1536x713.png 1536w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2024\/07\/FSE-CSS-3.png 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<h6 class=\"wp-block-heading\" id=\"h-4\">4.<\/h6>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"475\" src=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2024\/07\/FSE-CSS-4-1024x475.png\" alt=\"\" class=\"wp-image-1961737\" srcset=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2024\/07\/FSE-CSS-4-1024x475.png 1024w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2024\/07\/FSE-CSS-4-300x139.png 300w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2024\/07\/FSE-CSS-4-768x356.png 768w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2024\/07\/FSE-CSS-4-1536x713.png 1536w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2024\/07\/FSE-CSS-4.png 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<h6 class=\"wp-block-heading\" id=\"h-5\">5.<\/h6>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"475\" src=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2024\/07\/FSE-CSS-5-1024x475.png\" alt=\"\" class=\"wp-image-1961738\" srcset=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2024\/07\/FSE-CSS-5-1024x475.png 1024w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2024\/07\/FSE-CSS-5-300x139.png 300w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2024\/07\/FSE-CSS-5-768x356.png 768w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2024\/07\/FSE-CSS-5-1536x713.png 1536w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2024\/07\/FSE-CSS-5.png 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\"><\/div>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"always\">Adding JavaScript Snippets<\/h2>\n\n\n\n<p>Sometimes, you might need to add a JavaScript snippet to your site. This works differently from adding PHP code. JavaScript snippets are typically placed in the header or footer of a WordPress site to ensure they load across all pages. While you can manually add them to your <code>header.php<\/code> or <code>footer.php<\/code> files, any theme updates will overwrite these changes.<\/p>\n\n\n\n<p>To avoid this, it&#8217;s best to use a plugin like <a href=\"https:\/\/wordpress.org\/plugins\/insert-headers-and-footers\/\">WP Code<\/a>. Once you&#8217;ve installed the plugin, you need to go to <strong>Snippets > Add<\/strong> <strong>Snippet<\/strong>:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"608\" height=\"618\" src=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2019\/10\/image.png\" alt=\"\" class=\"wp-image-1964339\" style=\"width:261px;height:auto\" srcset=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2019\/10\/image.png 608w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2019\/10\/image-295x300.png 295w\" sizes=\"auto, (max-width: 608px) 100vw, 608px\" \/><\/figure>\n\n\n\n<p>Then choose <strong>Add Your Custom Code (New Snippet)<\/strong>:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"378\" src=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2019\/10\/image-1-1024x378.png\" alt=\"\" class=\"wp-image-1964340\" style=\"width:666px;height:auto\" srcset=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2019\/10\/image-1-1024x378.png 1024w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2019\/10\/image-1-300x111.png 300w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2019\/10\/image-1-768x283.png 768w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2019\/10\/image-1-1536x567.png 1536w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2019\/10\/image-1.png 1864w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>And then choose the <strong>JavaScript Snippet<\/strong> option:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"408\" src=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2019\/10\/image-2-1024x408.png\" alt=\"\" class=\"wp-image-1964341\" style=\"width:691px;height:auto\" srcset=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2019\/10\/image-2-1024x408.png 1024w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2019\/10\/image-2-300x120.png 300w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2019\/10\/image-2-768x306.png 768w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2019\/10\/image-2-1536x613.png 1536w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2019\/10\/image-2.png 1956w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Once you&#8217;ve added the snippet, make sure you save it and that it&#8217;s active:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"367\" src=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2019\/10\/image-4-1024x367.png\" alt=\"\" class=\"wp-image-1964343\" style=\"width:695px;height:auto\" srcset=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2019\/10\/image-4-1024x367.png 1024w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2019\/10\/image-4-300x108.png 300w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2019\/10\/image-4-768x275.png 768w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2019\/10\/image-4-1536x551.png 1536w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2019\/10\/image-4-2048x734.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"always\">Backup, backup, backup!<\/h2>\n\n\n\n<p>Seriously, we can&#8217;t say this enough. <strong>Make sure you have a restorable backup of your site&#8217;s files and database before making any changes.<\/strong> This helps prevent a worst-case scenario and offers a lot of peace of mind.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Test changes first<\/h2>\n\n\n\n<p>We strongly recommend testing any change to your site in a safe <a href=\"https:\/\/staging.theeventscalendar.com\/knowledgebase\/k\/creating-and-using-a-wordpress-staging-site\/\">staging environment<\/a> before adding new code to your live site. This way, you can always be confident that the code you&#8217;re using works, and that it is compatible with your site without jeopardizing your live site.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When we refer to &#8220;snippets&#8221; in this context, we mean small pieces of PHP code. There are three basic ways to add these PHP snippets to your WordPress site: Other than knowing where to implement a code snippet, there are additional things to take into consideration when adding custom code for your calendar to your&#8230;<\/p>\n","protected":false},"author":5,"featured_media":1955565,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","_swpsp_post_exclude":false,"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"ep_exclude_from_search":false,"footnotes":""},"categories":[59],"tags":[25],"stellar-product-taxonomy":[],"class_list":["post-1896660","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-customizing-resources","tag-customizations"],"acf":[],"taxonomy_info":{"category":[{"value":59,"label":"PHP &amp; Functions"}],"post_tag":[{"value":25,"label":"Customizations"}]},"featured_image_src_large":["https:\/\/images.theeventscalendar.com\/kb\/uploads\/2023\/02\/social-share-1024x538.png",1024,538,true],"author_info":{"display_name":"Leah","author_link":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/author\/leahk\/"},"comment_info":0,"category_info":[{"term_id":59,"name":"PHP &amp; Functions","slug":"customizing-resources","term_group":0,"term_taxonomy_id":59,"taxonomy":"category","description":"","parent":24,"count":101,"filter":"raw","term_order":"0","cat_ID":59,"category_count":101,"category_description":"","cat_name":"PHP &amp; Functions","category_nicename":"customizing-resources","category_parent":24}],"tag_info":[{"term_id":25,"name":"Customizations","slug":"customizations","term_group":0,"term_taxonomy_id":25,"taxonomy":"post_tag","description":"","parent":0,"count":177,"filter":"raw","term_order":"0"}],"_links":{"self":[{"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1896660","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/comments?post=1896660"}],"version-history":[{"count":7,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1896660\/revisions"}],"predecessor-version":[{"id":1964344,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1896660\/revisions\/1964344"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/media\/1955565"}],"wp:attachment":[{"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/media?parent=1896660"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/categories?post=1896660"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/tags?post=1896660"},{"taxonomy":"stellar-product-taxonomy","embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/stellar-product-taxonomy?post=1896660"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}