sorry the article was published – with no controll – i have forgotten the text… – here is it:
Registering block templates via plugins in WordPress 6.7 :: By Justin Tadlock August 29, 2024
WordPress 6.7 development is moving along, and one of the biggest features of the release has now landed in the Gutenberg plugin: block templates via plugins.
If you’ve ever built a plugin with front-end template output, you know how difficult it can be to play nicely with themes while also attempting to output content generated by your plugin. This is especially common when building custom post types, custom taxonomies, or even virtual pages (i.e., custom URLs). And it’s been an issue for well over a decade with no standard Core solution for addressing it.
As of Gutenberg 19.1, which will eventually be merged into WordPress 6.7, you can begin registering block templates and defining default content for your plugins. Because it’s all built on top of the block system, both themes and users can customize the template.
In this tutorial, I will walk you through the basics of registering block templates from plugins, show you how to overwrite them via themes, and share some tips and tricks along the way.
Did you mean to include a link?
sorry the article was published – with no controll – i have forgotten the text… – here is it:
Registering block templates via plugins in WordPress 6.7 :: By Justin Tadlock August 29, 2024
WordPress 6.7 development is moving along, and one of the biggest features of the release has now landed in the Gutenberg plugin: block templates via plugins.
If you’ve ever built a plugin with front-end template output, you know how difficult it can be to play nicely with themes while also attempting to output content generated by your plugin. This is especially common when building custom post types, custom taxonomies, or even virtual pages (i.e., custom URLs). And it’s been an issue for well over a decade with no standard Core solution for addressing it.
As of Gutenberg 19.1, which will eventually be merged into WordPress 6.7, you can begin registering block templates and defining default content for your plugins. Because it’s all built on top of the block system, both themes and users can customize the template.
In this tutorial, I will walk you through the basics of registering block templates from plugins, show you how to overwrite them via themes, and share some tips and tricks along the way.
**see more – get more data and insihgts:**
WordPress @Twitter; [https://twitter.com/wordPress](https://twitter.com/wordPress)
developer.wordpress.org : https://developer.wordpress.org/news/2024/08/29/registering-block-templates-via-plugins-in-wordpress-6-7/