{"id":38,"date":"2023-08-10T20:40:50","date_gmt":"2023-08-10T20:40:50","guid":{"rendered":"https:\/\/crosswindsframework.com\/docs\/?post_type=article&#038;p=38"},"modified":"2023-08-10T20:40:52","modified_gmt":"2023-08-10T20:40:52","slug":"how-to-develop-with-the-crosswinds-blocks-plugin","status":"publish","type":"article","link":"https:\/\/crosswindsframework.com\/docs\/article\/how-to-develop-with-the-crosswinds-blocks-plugin\/","title":{"rendered":"How to Develop With the Crosswinds Blocks Plugin"},"content":{"rendered":"\n<p>Customizing the use of Crosswinds Blocks with your theme is fairly easy and straightforward.<\/p>\n\n\n\n<p>Right now, the biggest thing you can do is force certain blocks, post types and taxonomies to be enabled when your theme is active. Below are the filters you can use to do just that.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-blocks\">Blocks<\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\n&lt;?php\nadd_filter( &#039;crosswinds_blocks_enable_{block-slug}_block&#039;, function(){\n    return true;\n} );\n?&gt;\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\" id=\"h-post-types\">Post Types<\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\n&lt;?php\nadd_filter( &#039;crosswinds_blocks_enable_{post-type-slug}_cpt&#039;, function(){\n    return true;\n} );\n?&gt;\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\" id=\"h-taxonomies\">Taxonomies<\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\n&lt;?php\nadd_filter( &#039;crosswinds_blocks_enable_{taxonomy-slug}_taxonomy&#039;, function(){\n    return true;\n} );\n?&gt;\n<\/pre><\/div>\n\n\n<p>More customizations will likely be added as the plugin continues to be developed. If you have an idea for a customization that themes can do for this plugin, please add it as an issue in the repository.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Customizing the use of Crosswinds Blocks with your theme is fairly easy and straightforward. Right now, the biggest thing you can do is force certain blocks, post types and taxonomies to be enabled when your theme is active. Below are the filters you can use to do just that. Blocks Post Types Taxonomies More customizations&#8230;<\/p>\n","protected":false},"featured_media":0,"parent":0,"menu_order":0,"template":"","product":[3],"class_list":["post-38","article","type-article","status-publish","hentry","product-crosswinds-blocks"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v25.6 (Yoast SEO v26.3) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Develop With the Crosswinds Blocks Plugin - Crosswinds Framework Documentation<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/crosswindsframework.com\/docs\/article\/how-to-develop-with-the-crosswinds-blocks-plugin\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Develop With the Crosswinds Blocks Plugin\" \/>\n<meta property=\"og:description\" content=\"Customizing the use of Crosswinds Blocks with your theme is fairly easy and straightforward. Right now, the biggest thing you can do is force certain blocks, post types and taxonomies to be enabled when your theme is active. Below are the filters you can use to do just that. Blocks Post Types Taxonomies More customizations...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/crosswindsframework.com\/docs\/article\/how-to-develop-with-the-crosswinds-blocks-plugin\/\" \/>\n<meta property=\"og:site_name\" content=\"Crosswinds Framework Documentation\" \/>\n<meta property=\"article:modified_time\" content=\"2023-08-10T20:40:52+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/crosswindsframework.com\/docs\/article\/how-to-develop-with-the-crosswinds-blocks-plugin\/\",\"url\":\"https:\/\/crosswindsframework.com\/docs\/article\/how-to-develop-with-the-crosswinds-blocks-plugin\/\",\"name\":\"How to Develop With the Crosswinds Blocks Plugin - Crosswinds Framework Documentation\",\"isPartOf\":{\"@id\":\"https:\/\/crosswindsframework.com\/docs\/#website\"},\"datePublished\":\"2023-08-10T20:40:50+00:00\",\"dateModified\":\"2023-08-10T20:40:52+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/crosswindsframework.com\/docs\/article\/how-to-develop-with-the-crosswinds-blocks-plugin\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/crosswindsframework.com\/docs\/article\/how-to-develop-with-the-crosswinds-blocks-plugin\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/crosswindsframework.com\/docs\/article\/how-to-develop-with-the-crosswinds-blocks-plugin\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/crosswindsframework.com\/docs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Develop With the Crosswinds Blocks Plugin\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/crosswindsframework.com\/docs\/#website\",\"url\":\"https:\/\/crosswindsframework.com\/docs\/\",\"name\":\"Crosswinds Framework Documentation\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/crosswindsframework.com\/docs\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Develop With the Crosswinds Blocks Plugin - Crosswinds Framework Documentation","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/crosswindsframework.com\/docs\/article\/how-to-develop-with-the-crosswinds-blocks-plugin\/","og_locale":"en_US","og_type":"article","og_title":"How to Develop With the Crosswinds Blocks Plugin","og_description":"Customizing the use of Crosswinds Blocks with your theme is fairly easy and straightforward. Right now, the biggest thing you can do is force certain blocks, post types and taxonomies to be enabled when your theme is active. Below are the filters you can use to do just that. Blocks Post Types Taxonomies More customizations...","og_url":"https:\/\/crosswindsframework.com\/docs\/article\/how-to-develop-with-the-crosswinds-blocks-plugin\/","og_site_name":"Crosswinds Framework Documentation","article_modified_time":"2023-08-10T20:40:52+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/crosswindsframework.com\/docs\/article\/how-to-develop-with-the-crosswinds-blocks-plugin\/","url":"https:\/\/crosswindsframework.com\/docs\/article\/how-to-develop-with-the-crosswinds-blocks-plugin\/","name":"How to Develop With the Crosswinds Blocks Plugin - Crosswinds Framework Documentation","isPartOf":{"@id":"https:\/\/crosswindsframework.com\/docs\/#website"},"datePublished":"2023-08-10T20:40:50+00:00","dateModified":"2023-08-10T20:40:52+00:00","breadcrumb":{"@id":"https:\/\/crosswindsframework.com\/docs\/article\/how-to-develop-with-the-crosswinds-blocks-plugin\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/crosswindsframework.com\/docs\/article\/how-to-develop-with-the-crosswinds-blocks-plugin\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/crosswindsframework.com\/docs\/article\/how-to-develop-with-the-crosswinds-blocks-plugin\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/crosswindsframework.com\/docs\/"},{"@type":"ListItem","position":2,"name":"How to Develop With the Crosswinds Blocks Plugin"}]},{"@type":"WebSite","@id":"https:\/\/crosswindsframework.com\/docs\/#website","url":"https:\/\/crosswindsframework.com\/docs\/","name":"Crosswinds Framework Documentation","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/crosswindsframework.com\/docs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/crosswindsframework.com\/docs\/wp-json\/wp\/v2\/article\/38","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/crosswindsframework.com\/docs\/wp-json\/wp\/v2\/article"}],"about":[{"href":"https:\/\/crosswindsframework.com\/docs\/wp-json\/wp\/v2\/types\/article"}],"wp:attachment":[{"href":"https:\/\/crosswindsframework.com\/docs\/wp-json\/wp\/v2\/media?parent=38"}],"wp:term":[{"taxonomy":"product","embeddable":true,"href":"https:\/\/crosswindsframework.com\/docs\/wp-json\/wp\/v2\/product?post=38"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}