Title: PHP-only block registration
Author: Miguel Fonseca
Published: March 3, 2026
Last modified: May 18, 2026

---

 [  ](https://profiles.wordpress.org/mcsf/) [Miguel Fonseca](https://profiles.wordpress.org/mcsf/)
5:00 pm _on_ March 3, 2026     
Tags: [7.0 ( 76 )](https://make.wordpress.org/core/tag/7-0/),
[dev-notes ( 654 )](https://make.wordpress.org/core/tag/dev-notes/), [dev-notes-7-0 ( 22 )](https://make.wordpress.org/core/tag/dev-notes-7-0/)

# PHP-only block registration

Developers can now create simple blocks using only PHPPHP The web scripting language
in which WordPress is primarily architected. WordPress requires PHP 7.4 or higher.
This is meant for blocks that only need server-side rendering and aren’t meant to
be highly interactive. It isn’t meant to replace the existing client-side paradigm,
nor is it meant to ever be as featureful! However, this APIAPI An API or Application
Programming Interface is a software intermediary that allows programs to interact
with each other and share data in limited, clearly defined ways. could help developers
avoid extra complexity and could thus foster blockBlock Block is the abstract term
used to describe units of markup that, composed together, form the content or layout
of a webpage using the WordPress editor. The idea combines concepts of what in the
past may have achieved with shortcodes, custom HTML, and embed discovery into a 
single consistent API and user experience. adoption, especially in classic themes
or server-driven workflows.

To use it, call `register_block_type` with the new `autoRegister` flag. Note that
a `render_callback` function must also be provided:

    ```php
    function gutenberg_register_php_only_blocks() {
        register_block_type(
            'my-plugin/example',
            array(
                'title'           => __( 'My Example Block', 'myplugin' ),
                'attributes'      => array(
                    'title'   => array(
                        'label'   => __( 'Title', 'myplugin' ),
                        'type'    => 'string',
                        'default' => 'Hello World',
                    ),
                    'count'   => array(
                        'label'   => __( 'Count', 'myplugin' ),
                        'type'    => 'integer',
                        'default' => 5,
                    ),
                    'enabled' => array(
                        'label'   => __( 'Enabled?', 'myplugin' ),
                        'type'    => 'boolean',
                        'default' => true,
                    ),
                    'size'    => array(
                        'label'   => __( 'Size', 'myplugin' ),
                        'type'    => 'string',
                        'enum'    => array( 'small', 'medium', 'large' ),
                        'default' => 'medium',
                    ),
                ),
                'render_callback' => function ( $attributes ) {
                    return sprintf(
                        __( '<p>%s: %d items (%s)</p>', 'myplugin' ),
                        esc_html( $attributes['title'] ),
                        $attributes['count'],
                        $attributes['size']
                    );
                },
                'supports'        => array(
                    'autoRegister' => true,
                ),
            )
        );
    }

    add_action( 'init', 'gutenberg_register_php_only_blocks' );
    ```

These blocks will automatically appear in the editor without requiring any JavaScriptJavaScript
JavaScript or JS is an object-oriented computer programming language commonly used
to create interactive effects within web browsers. WordPress makes extensive use
of JS for a better user experience. While PHP is executed on the server, JS executes
within a user’s browser. [https://www.javascript.com](https://www.javascript.com/)
registration, and, wherever possible, the editor will automatically generate controls
in the Inspector Controls sidebarSidebar A sidebar in WordPress is referred to a
widget-ready area used by WordPress themes to display information that is not a 
part of the main content. It is not always a vertical column on the side. It can
be a horizontal rectangle below or above the content area, footer, header, or any
where in the theme. to allow users to edit block attributes:

[[

Note that controls will not be generated for attributes with the `local` role or
for attributes whose types are not supported.

See [#64639](https://core.trac.wordpress.org/ticket/64639) for more details.

Props to [@priethor](https://profiles.wordpress.org/priethor/) for the implementation.

Props to [@wildworks](https://profiles.wordpress.org/wildworks/) for reviewing this
dev notedev note Each important change in WordPress Core is documented in a developers
note, (usually called dev note). Good dev notes generally include a description 
of the change, the decision that led to this change, and a description of how developers
are supposed to work with that change. Dev notes are published on Make/Core blog
during the beta phase of WordPress release cycle. Publishing dev notes is particularly
important when plugin/theme authors and WordPress developers need to be aware of
those changes.In general, all dev notes are compiled into a Field Guide at the beginning
of the release candidate phase..

[#dev-notes](https://make.wordpress.org/core/tag/dev-notes/), [#7-0](https://make.wordpress.org/core/tag/7-0/)

[#dev-notes-7-0](https://make.wordpress.org/core/tag/dev-notes-7-0/)

### Share this:

 * [  Threads ](https://make.wordpress.org/core/2026/03/03/php-only-block-registration/?share=threads)
 * [  Mastodon ](https://make.wordpress.org/core/2026/03/03/php-only-block-registration/?share=mastodon)
 * [  Bluesky ](https://make.wordpress.org/core/2026/03/03/php-only-block-registration/?share=bluesky)
 * [  X ](https://make.wordpress.org/core/2026/03/03/php-only-block-registration/?share=x)
 * [  Facebook ](https://make.wordpress.org/core/2026/03/03/php-only-block-registration/?share=facebook)
 * [  LinkedIn ](https://make.wordpress.org/core/2026/03/03/php-only-block-registration/?share=linkedin)

 1.  ![](https://secure.gravatar.com/avatar/4b04f3868d5d00557a0e117f43262a23de2b023b16cf33e18bf233ecce7e4515?
     s=32&d=mm&r=g)
 2.   [Hudson Atwell](https://profiles.wordpress.org/hudson-atwell/)  5:33 pm _on_ 
     March 3, 2026
 3.  Nice. Resharing.
 4.  ![](https://secure.gravatar.com/avatar/7a5292100c282f026e569833a0fb8b40de90c13f29093f585a23aac147cce4cb?
     s=32&d=mm&r=g)
 5.   [Press Programmer](https://profiles.wordpress.org/pressprogrammer/)  5:49 pm 
     _on_ March 3, 2026
 6.  Thank you for sharing. This is one of the most interesting development for BlockBlock
     Block is the abstract term used to describe units of markup that, composed together,
     form the content or layout of a webpage using the WordPress editor. The idea combines
     concepts of what in the past may have achieved with shortcodes, custom HTML, and
     embed discovery into a single consistent API and user experience. editor . It 
     may well be the beginning of a new awesome era for the block editor based development!
 7.   * ![](https://secure.gravatar.com/avatar/fb106f1c4570efe9214cc96f35bd8b494583aaa30647c7811e6753a76ac34742?
        s=32&d=mm&r=g)
      *  [Ciprian Popescu](https://profiles.wordpress.org/butterflymedia/)  6:28 pm
        _on_ March 3, 2026
      * That is correct. This change is bringing back the real WordPress developers
        back into the fold.
 8.  ![](https://secure.gravatar.com/avatar/fb106f1c4570efe9214cc96f35bd8b494583aaa30647c7811e6753a76ac34742?
     s=32&d=mm&r=g)
 9.   [Ciprian Popescu](https://profiles.wordpress.org/butterflymedia/)  6:21 pm _on_
     March 3, 2026
 10. This is **THE FIRST** blockBlock Block is the abstract term used to describe units
     of markup that, composed together, form the content or layout of a webpage using
     the WordPress editor. The idea combines concepts of what in the past may have 
     achieved with shortcodes, custom HTML, and embed discovery into a single consistent
     API and user experience.-editor-related good news since GutenbergGutenberg The
     Gutenberg project is the new Editor Interface for WordPress. The editor improves
     the process and experience of creating new content, making writing rich content
     much simpler. It uses ‘blocks’ to add richness rather than shortcodes, custom 
     HTML etc.
      [https://wordpress.org/gutenberg/](https://wordpress.org/gutenberg/)
     was first implemented.
 11. ![](https://secure.gravatar.com/avatar/2915e1013f968e0a0272b4d95ca3296049b5e4e53ae8a3cad515780e59b69adc?
     s=32&d=mm&r=g)
 12.  [jakeparis](https://profiles.wordpress.org/jakeparis/)  6:59 pm _on_ March 3,
     2026
 13. Fantastic! This will definitely make plenty of use-cases much more streamlined.
 14. ![](https://secure.gravatar.com/avatar/58a965bf457978ccc1ccc7bfb72e6381b2e17948b56b83d020c62fe68772ea25?
     s=32&d=mm&r=g)
 15.  [Mark Wilkinson](https://profiles.wordpress.org/wpmarkuk/)  7:42 pm _on_ March
     3, 2026
 16. In the example you show attributes with text, number, checkbox and select inputs.
     Is that all that is available? What about image/file uploads etc?
 17.  * ![](https://secure.gravatar.com/avatar/fa9bb9feab2f2f97662e7b07c9deaf0aca3ec7c037840a8cc3563ec022f77048?
        s=32&d=mm&r=g)
      *  [Miguel Fonseca](https://profiles.wordpress.org/mcsf/)  10:59 am _on_ March
        4, 2026
      * For now, this is the extent of the support: string, number, integer, boolean.
        Attributes must also not be “sourced”, i.e. they must be saved in the blockBlock
        Block is the abstract term used to describe units of markup that, composed 
        together, form the content or layout of a webpage using the WordPress editor.
        The idea combines concepts of what in the past may have achieved with shortcodes,
        custom HTML, and embed discovery into a single consistent API and user experience.
        boundary’s JSONJSON JSON, or JavaScript Object Notation, is a minimal, readable
        format for structuring data. It is used primarily to transmit data between 
        a server and web application, as an alternative to XML. (which is the default)
        and not be serialised as HTMLHTML HyperText Markup Language. The semantic scripting
        language primarily used for outputting content in web browsers.:
      * [`wp_mark_auto_generate_control_attributes()`#L41-L53](https://github.com/WordPress/wordpress-develop/blob/db6e7acddf82cf14d3de71a06588dc2ecd236c94/src/wp-includes/block-supports/auto-register.php#L41-L53)
      * As other efforts mature in GutenbergGutenberg The Gutenberg project is the 
        new Editor Interface for WordPress. The editor improves the process and experience
        of creating new content, making writing rich content much simpler. It uses ‘
        blocks’ to add richness rather than shortcodes, custom HTML etc.
         [https://wordpress.org/gutenberg/](https://wordpress.org/gutenberg/)
        around the Fields APIAPI An API or Application Programming Interface is a software
        intermediary that allows programs to interact with each other and share data
        in limited, clearly defined ways. and so-called block fields, it’s possible
        that the `autoRegister` feature will automatically be able to support a few
        more fields. But it’s much too early to make any promises!
 18. ![](https://secure.gravatar.com/avatar/3145034461a6a95758cd92cc3315cb4f980e65e2d1d55a03f3fef4d4f73e13b0?
     s=32&d=mm&r=g)
 19.  [sinan isler](https://profiles.wordpress.org/sinan-isler/)  8:07 pm _on_ March
     3, 2026
 20. it definitly needs more love but great start
 21. even as it is i can see myself adding some custom blocks on my theme now to solve
     client problems or creating some crazy design sections easily since patterns has
     some limitations but blocks doesnt.
 22.  * ![](https://secure.gravatar.com/avatar/1d94d93c48a9c6e61f9efcdd48a3758d72a0b85f61c0d57a7f0c01ab10c86e9e?
        s=32&d=mm&r=g)
      *  [Jer Clarke](https://profiles.wordpress.org/jerclarke/)  9:40 pm _on_ May 
        29, 2026
      * Yeah, it seems the value is in showing things like custom fields or something
        generated elsewhere in a blockBlock Block is the abstract term used to describe
        units of markup that, composed together, form the content or layout of a webpage
        using the WordPress editor. The idea combines concepts of what in the past 
        may have achieved with shortcodes, custom HTML, and embed discovery into a 
        single consistent API and user experience. without jumping through JSJS JavaScript,
        a web scripting language typically executed in the browser. Often used for 
        advanced user interfaces and behaviors. hoops.
      * These field options are pretty sad, but good enough to make blocks with the
        kind of “widgetWidget A WordPress Widget is a small block that performs a specific
        function. You can add these widgets in sidebars also known as widget-ready 
        areas on your web page. WordPress widgets were originally created to provide
        a simple and easy-to-use way of giving design and structure control of the 
        WordPress theme to the user. settings” that let you customize the display of
        something being loaded in the background.
      * The fact that all the usual design **supports** work out of the box is great!
        A total game-changer compared to inserting shortcodes and not having any style
        options at all. Plugins that have been saying “just insert a shortcodeShortcode
        A shortcode is a placeholder used within a WordPress post, page, or widget 
        to insert a form or function generated by a plugin in a specific location on
        your site.” should be salivating at the opportunity to have proper blocks, 
        and everyone will benefit.
      * It’s linked further down in the comments, but don’t miss this article! [https://getbutterfly.com/php-only-block-registration-in-wordpress/](https://getbutterfly.com/php-only-block-registration-in-wordpress/)
      * It explains how this actually works in a way I wish this dev notedev note Each
        important change in WordPress Core is documented in a developers note, (usually
        called dev note). Good dev notes generally include a description of the change,
        the decision that led to this change, and a description of how developers are
        supposed to work with that change. Dev notes are published on Make/Core blog
        during the beta phase of WordPress release cycle. Publishing dev notes is particularly
        important when plugin/theme authors and WordPress developers need to be aware
        of those changes.In general, all dev notes are compiled into a Field Guide 
        at the beginning of the release candidate phase. did. The dev note kind of 
        reads like the author was forced to write it against their will 😅
 23. ![](https://secure.gravatar.com/avatar/325b6f559d1bfda6eff63f126fe6dbc7154abe1ba28de3e2fd5176e1aed31262?
     s=32&d=mm&r=g)
 24.  [Colin Devroe](https://profiles.wordpress.org/cdevroe/)  9:37 pm _on_ March 3,
     2026
 25. 👏
 26. ![](https://secure.gravatar.com/avatar/b3bb41673e10e096cff88d7ee9e3cb2e88b56bb3155a3214d630a0908d22bb13?
     s=32&d=mm&r=g)
 27.  [bikramchettri](https://profiles.wordpress.org/bikramchettri/)  3:14 am _on_ 
     March 4, 2026
 28. can we do inner blocks?
 29.  * ![](https://secure.gravatar.com/avatar/fa9bb9feab2f2f97662e7b07c9deaf0aca3ec7c037840a8cc3563ec022f77048?
        s=32&d=mm&r=g)
      *  [Miguel Fonseca](https://profiles.wordpress.org/mcsf/)  11:00 am _on_ March
        4, 2026
      * No, and there isn’t any clear vision for it. What scenarios would you have 
        in mind?
         - ![](https://secure.gravatar.com/avatar/13f31aeb65a23976f79263b424cffc7835bd25e6d0abdc8679daf01b0b447703?
           s=32&d=mm&r=g)
         -  [Yakovos Frountas](https://profiles.wordpress.org/ifrountas/)  2:12 pm 
           _on_ March 4, 2026
         - [@mcsf](https://profiles.wordpress.org/mcsf/) Inner blockBlock Block is 
           the abstract term used to describe units of markup that, composed together,
           form the content or layout of a webpage using the WordPress editor. The 
           idea combines concepts of what in the past may have achieved with shortcodes,
           custom HTML, and embed discovery into a single consistent API and user experience.
           support is essential. When creating a custom container block with custom
           properties that requires inner columns, this is currently not possible —
           which means block registration via PHPPHP The web scripting language in 
           which WordPress is primarily architected. WordPress requires PHP 7.4 or 
           higher remains incomplete without it.
            * ![](https://secure.gravatar.com/avatar/fb106f1c4570efe9214cc96f35bd8b494583aaa30647c7811e6753a76ac34742?
              s=32&d=mm&r=g)
            *  [Ciprian Popescu](https://profiles.wordpress.org/butterflymedia/)  2:
              19 pm _on_ March 4, 2026
            * I disagree. The purpose of these blocks has a different use-case.
               It’s
              about server-side blocks. Blocks you build for one specific goal.
            * I have already built 4 of these blocks:
            * 1. A marquee blockBlock Block is the abstract term used to describe units
              of markup that, composed together, form the content or layout of a webpage
              using the WordPress editor. The idea combines concepts of what in the
              past may have achieved with shortcodes, custom HTML, and embed discovery
              into a single consistent API and user experience., where you can set 
              the content in the Inspector panel.
               2. A Call-to-Action block. 3. An
              author box, formatted the way I want for my own theme. 4. An Advanced
              Heding block with 20 different styles (selectable via a dropdown).
            * All 4 blocks have various options and settings in the right-side Inspector
              sidebarSidebar A sidebar in WordPress is referred to a widget-ready area
              used by WordPress themes to display information that is not a part of
              the main content. It is not always a vertical column on the side. It 
              can be a horizontal rectangle below or above the content area, footer,
              header, or any where in the theme..
            * ![](https://secure.gravatar.com/avatar/fa9bb9feab2f2f97662e7b07c9deaf0aca3ec7c037840a8cc3563ec022f77048?
              s=32&d=mm&r=g)
            *  [Miguel Fonseca](https://profiles.wordpress.org/mcsf/)  2:24 pm _on_
              March 4, 2026
            * I don’t refute that inner blocks are important: that’s why we’ve had 
              them since before 5.0. 🙂
            * What I am trying to understand is:
               - what kind of concrete scenarios of blockBlock Block is the abstract
                 term used to describe units of markup that, composed together, form
                 the content or layout of a webpage using the WordPress editor. The
                 idea combines concepts of what in the past may have achieved with 
                 shortcodes, custom HTML, and embed discovery into a single consistent
                 API and user experience. nesting people expected to see involving 
                 PHPPHP The web scripting language in which WordPress is primarily 
                 architected. WordPress requires PHP 7.4 or higher-only registration;
               - what kind of block-level and document-level semantics are expected,
                 what kind of structure in the database;
               - what kind of relationships between block types are imagined — for 
                 instance, is it a specific parent type P containing instances of a
                 specific child type C, with both types leveraging PHP-only registration?
                 Is it a PHP-generated container type that is expected to contain any
                 kind of block? And so on;
               - what kind of ergonomics are expected on the code side, e.g. what happens
                 in the render callback of a container;
               - what kind of ergonomics are expected on the client side, in particular
                 when we consider that any in-editor changes to PHP-only blocks will
                 require server roundtrips (for server-side rendering), and when we
                 consider that the editor canvas is designed for highly reactive blocks,
                 etc;
               - and finally, the difficult question: why are the scenarios powered
                 by PHP-only registration more compelling than the existing (and much
                 more powerful) methods involving client-side code?
            *  - ![](https://secure.gravatar.com/avatar/16551810b8c56652cdcf583129be4fa53502818c9a0c5122960ccbce48132720?
                 s=32&d=mm&r=g)
               -  [amundsan](https://profiles.wordpress.org/amundsan/)  1:04 am _on_
                 April 2, 2026
               - I’m going to answer only the most difficult question: the vast majority
                 of websites use relatively simple blocks that don’t require reactReact
                 React is a JavaScript library that makes it easy to reason about, 
                 construct, and maintain stateless and stateful user interfaces.
                  [https://reactjs.org](https://reactjs.org/)’
                 s incredibly powerful engineering. A nesting depth of one or two levels,
                 a limit on parent and child blocks, and 98.26% of developers will 
                 be happy. Roughly speaking, it’s maths, so it’s not super precise.
                 Wordpress is a php cms. It’s hard to hear after all those hours of
                 js coding, but it’s true. And on a more personal note, I like php,
                 but not Symfony. I like javascriptJavaScript JavaScript or JS is an
                 object-oriented computer programming language commonly used to create
                 interactive effects within web browsers. WordPress makes extensive
                 use of JS for a better user experience. While PHP is executed on the
                 server, JS executes within a user’s browser. [https://www.javascript.com](https://www.javascript.com/),
                 but not react. I have simple tastes.
 30. ![](https://secure.gravatar.com/avatar/988fb20eb0c48087af96a3032d7e6959022018a41642dcc207aa577ccdb48f92?
     s=32&d=mm&r=g)
 31.  [souri](https://profiles.wordpress.org/souri/)  11:32 am _on_ March 4, 2026
 32. Finally! Na endlich gibts im CoreCore Core is the set of software required to 
     run WordPress. The Core Development Team builds WordPress. diese Möglichkeit!
 33. ![](https://secure.gravatar.com/avatar/3c8800cc963939d2f08c00c93f16aefd6f96991b0295f2ab658f58b45e428fd8?
     s=32&d=mm&r=g)
 34.  [Austin](https://profiles.wordpress.org/austyfrosty/)  3:35 pm _on_ March 4, 
     2026
 35. Excellent
 36. ![](https://secure.gravatar.com/avatar/83f7fb4e6d882833c32d3fc46620f1fb29b0914f26f3811cad982ab5e72b48e1?
     s=32&d=mm&r=g)
 37.  [miya](https://profiles.wordpress.org/presents111/)  4:04 pm _on_ March 4, 2026
 38. Great.
      Is there a save function available for storing in post_contents instead
     of render_callback? Do you have a vision for this?
 39.  * ![](https://secure.gravatar.com/avatar/fa9bb9feab2f2f97662e7b07c9deaf0aca3ec7c037840a8cc3563ec022f77048?
        s=32&d=mm&r=g)
      *  [Miguel Fonseca](https://profiles.wordpress.org/mcsf/)  4:13 pm _on_ March
        4, 2026
      * There is no save function available in this setup, no. I don’t think we’ll 
        implement anything like it anytime soon (if ever), as it entails solving quite
        a few different problems, including the problem of performant and reliable 
        server-side [sourcing](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-attributes/#value-source)
        of attributes from HTMLHTML HyperText Markup Language. The semantic scripting
        language primarily used for outputting content in web browsers..
 40. ![](https://secure.gravatar.com/avatar/fb106f1c4570efe9214cc96f35bd8b494583aaa30647c7811e6753a76ac34742?
     s=32&d=mm&r=g)
 41.  [Ciprian Popescu](https://profiles.wordpress.org/butterflymedia/)  4:32 pm _on_
     March 4, 2026
 42. I have finished the first pluginPlugin A plugin is a piece of software containing
     a group of functions that can be added to a WordPress website. They can extend
     functionality or add new features to your WordPress websites. WordPress plugins
     are written in the PHP programming language and integrate seamlessly with WordPress.
     These can be free in the WordPress.org Plugin Directory [https://wordpress.org/plugins/](https://wordpress.org/plugins/)
     or can be cost-based plugin from a third-party. using PHPPHP The web scripting
     language in which WordPress is primarily architected. WordPress requires PHP 7.4
     or higher-only blocks (4 of them), and I wrote an article about my experience:
 43. [https://getbutterfly.com/php-only-block-registration-in-wordpress/](https://getbutterfly.com/php-only-block-registration-in-wordpress/)
 44.  * ![](https://secure.gravatar.com/avatar/1602873568de53d8a194f9e1eb5d76606ab08e2810b91f4965ebabd0c6090fe3?
        s=32&d=mm&r=g)
      *  [Nick](https://profiles.wordpress.org/nickchomey/)  10:00 pm _on_ March 28,
        2026
      * folks, this is a fantastic article – definitely check it out if this feature
        interests you
      * ![](https://secure.gravatar.com/avatar/868b4ec1eab64c38b1e7e319698dee0fa80c01387929b1ce5046b243e7712b24?
        s=32&d=mm&r=g)
      *  [Simone Montanari](https://profiles.wordpress.org/semikola/)  3:38 pm _on_
        May 28, 2026
      * Thanks for the practical example! A great read
         - ![](https://secure.gravatar.com/avatar/fb106f1c4570efe9214cc96f35bd8b494583aaa30647c7811e6753a76ac34742?
           s=32&d=mm&r=g)
         -  [Ciprian Popescu](https://profiles.wordpress.org/butterflymedia/)  4:43
           pm _on_ May 28, 2026
         - You are welcome!
      * ![](https://secure.gravatar.com/avatar/1d94d93c48a9c6e61f9efcdd48a3758d72a0b85f61c0d57a7f0c01ab10c86e9e?
        s=32&d=mm&r=g)
      *  [Jer Clarke](https://profiles.wordpress.org/jerclarke/)  10:29 pm _on_ May
        29, 2026
      * Incredible work Ciprian! Thank you so much for writing this up, this is 100%“
        the missing manual” for this feature, without it I would have been flailing
        around, but with it I feel ready to jump in and make some blocks!
         🫡
         - ![](https://secure.gravatar.com/avatar/fb106f1c4570efe9214cc96f35bd8b494583aaa30647c7811e6753a76ac34742?
           s=32&d=mm&r=g)
         -  [Ciprian Popescu](https://profiles.wordpress.org/butterflymedia/)  10:40
           am _on_ June 4, 2026
         - You are welcome!
 45. ![](https://secure.gravatar.com/avatar/1718b7c2f2afc31b4e94805b6f1f6ae2b802cc4c696f99b11fde2186006c82c9?
     s=32&d=mm&r=g)
 46.  [Pascal Birchler](https://profiles.wordpress.org/swissspidy/)  8:08 am _on_ March
     6, 2026
 47. How are the inspector controls labels for these PHPPHP The web scripting language
     in which WordPress is primarily architected. WordPress requires PHP 7.4 or higher-
     only blocks translated? That appears to be missing. They must be localizable.
 48.  * ![](https://secure.gravatar.com/avatar/fb106f1c4570efe9214cc96f35bd8b494583aaa30647c7811e6753a76ac34742?
        s=32&d=mm&r=g)
      *  [Ciprian Popescu](https://profiles.wordpress.org/butterflymedia/)  9:09 am
        _on_ March 6, 2026
      * As it’s PHPPHP The web scripting language in which WordPress is primarily architected.
        WordPress requires PHP 7.4 or higher code, they can easily be made translatable
        in your theme or pluginPlugin A plugin is a piece of software containing a 
        group of functions that can be added to a WordPress website. They can extend
        functionality or add new features to your WordPress websites. WordPress plugins
        are written in the PHP programming language and integrate seamlessly with WordPress.
        These can be free in the WordPress.org Plugin Directory [https://wordpress.org/plugins/](https://wordpress.org/plugins/)
        or can be cost-based plugin from a third-party.:
      * e.g. `'label' => __( 'Tagline', 'mdlui' )`
      *     ```notranslate
            'tagline' => array(
                'type'    => 'string',
                'default' => '',
                'label'   => __( 'Tagline', 'mdlui' ),
            ),
            ```
        
      * ![](https://secure.gravatar.com/avatar/fa9bb9feab2f2f97662e7b07c9deaf0aca3ec7c037840a8cc3563ec022f77048?
        s=32&d=mm&r=g)
      *  [Miguel Fonseca](https://profiles.wordpress.org/mcsf/)  10:34 am _on_ March
        6, 2026
      * Thanks for the callout. They are indeed translatable, but somehow in the dev
        notedev note Each important change in WordPress Core is documented in a developers
        note, (usually called dev note). Good dev notes generally include a description
        of the change, the decision that led to this change, and a description of how
        developers are supposed to work with that change. Dev notes are published on
        Make/Core blog during the beta phase of WordPress release cycle. Publishing
        dev notes is particularly important when plugin/theme authors and WordPress
        developers need to be aware of those changes.In general, all dev notes are 
        compiled into a Field Guide at the beginning of the release candidate phase.
        review process we forgot to highlight that. As Ciprian says, each attribute
        in the schema accepts a `label` property. I’ll edit the post to include them.
 49. ![](https://secure.gravatar.com/avatar/40af412e047db484173bc45e2f6ee4237e9697f5ede64f3e49f05e096bb44edb?
     s=32&d=mm&r=g)
 50.  [Adrian](https://profiles.wordpress.org/adrian2k7/)  9:24 am _on_ March 6, 2026
 51. As good and as long awaited this feature is … why is it so restricted?
 52. At least textarea should be a minimum … and media/image maybe too
 53. ![](https://secure.gravatar.com/avatar/ea8277c0f89e43a60f1d797c7c78fcea87a6687530f02719b5f1690158224cc8?
     s=32&d=mm&r=g)
 54.  [appsdevpk](https://profiles.wordpress.org/kashitheone/)  2:37 pm _on_ March 
     11, 2026
 55. i tried the example code and there is no custom blockBlock Block is the abstract
     term used to describe units of markup that, composed together, form the content
     or layout of a webpage using the WordPress editor. The idea combines concepts 
     of what in the past may have achieved with shortcodes, custom HTML, and embed 
     discovery into a single consistent API and user experience. in the editor?
 56.  * ![](https://secure.gravatar.com/avatar/fb106f1c4570efe9214cc96f35bd8b494583aaa30647c7811e6753a76ac34742?
        s=32&d=mm&r=g)
      *  [Ciprian Popescu](https://profiles.wordpress.org/butterflymedia/)  2:54 pm
        _on_ March 11, 2026
      * You need to use WordPress 7.0-beta3+.
         - ![](https://secure.gravatar.com/avatar/ea8277c0f89e43a60f1d797c7c78fcea87a6687530f02719b5f1690158224cc8?
           s=32&d=mm&r=g)
         -  [appsdevpk](https://profiles.wordpress.org/kashitheone/)  3:31 pm _on_ 
           March 11, 2026
         - thanks
 57. ![](https://secure.gravatar.com/avatar/9fc990b9d84df17c2abac160c3f16add04107f9d34a9882baefb86ea1eaded83?
     s=32&d=mm&r=g)
 58.  [t.schwarz](https://profiles.wordpress.org/tschwarz-1/)  3:34 am _on_ March 16,
     2026
 59. Not sure if this is a potential bugbug A bug is an error or unexpected result.
     Performance improvements, code optimization, and are considered enhancements, 
     not defects. After feature freeze, only bugs are dealt with, with regressions (
     adverse changes from the previous version) being the highest priority. because
     it’s so new and I might miss something – but I can’t get php-only blocks to render
     properly in the template previews. Their content will be rendered, but CSSCSS 
     Cascading Style Sheets. that is applied either globally or per blockBlock Block
     is the abstract term used to describe units of markup that, composed together,
     form the content or layout of a webpage using the WordPress editor. The idea combines
     concepts of what in the past may have achieved with shortcodes, custom HTML, and
     embed discovery into a single consistent API and user experience. and *works in
     the site editor itself* won’t be used in the template previews (which makes them
     look broken). I don’t have that issue with js-based blocks that use serverSideRender.
 60.  * ![](https://secure.gravatar.com/avatar/9fc990b9d84df17c2abac160c3f16add04107f9d34a9882baefb86ea1eaded83?
        s=32&d=mm&r=g)
      *  [t.schwarz](https://profiles.wordpress.org/tschwarz-1/)  7:12 pm _on_ March
        16, 2026
      * Never mind. I’m not sure why it didn’t before, but now it works.
 61. ![](https://secure.gravatar.com/avatar/0e4e6448e43e26824478b112ae43c1db2912f3c182bcd898dbc57b57090675e3?
     s=32&d=mm&r=g)
 62.  [Doug Wollison](https://profiles.wordpress.org/dougwollison/)  7:08 pm _on_ May
     16, 2026
 63. Is there a way to render it different in the editor preview vs on the frontend?
 64. A use case for this would be a blockBlock Block is the abstract term used to describe
     units of markup that, composed together, form the content or layout of a webpage
     using the WordPress editor. The idea combines concepts of what in the past may
     have achieved with shortcodes, custom HTML, and embed discovery into a single 
     consistent API and user experience. that acts like a specialized query loopLoop
     The Loop is PHP code used by WordPress to display posts. Using The Loop, WordPress
     processes each post to be displayed on the current page, and formats it according
     to how it matches specified criteria within The Loop tags. Any HTML or PHP code
     in the Loop will be processed on each post. [https://codex.wordpress.org/The_Loop](https://codex.wordpress.org/The_Loop)
     block, that would render with dummy content in the editor for the sake of simplicity.
 65.  * ![](https://secure.gravatar.com/avatar/cd257f389c91f137dab25f343b527123e887135b01921ebb6206e40cfa2eb636?
        s=32&d=mm&r=g)
      *  [Knut Sparhell](https://profiles.wordpress.org/knutsp/)  9:46 pm _on_ May 
        16, 2026
      * I haven’t tried this feature yet, but…
      * I also need that for som cases. I have blocks that show a lot of content, a
        large height. I display some dummy or just an explanation of what it will show(
        here).
      * For query based blocks I limit the query when shown in the editor, showing “
        and so on” or something at the end.
      * Finally eliminating shortcodes, even for those cases a shortcodeShortcode A
        shortcode is a placeholder used within a WordPress post, page, or widget to
        insert a form or function generated by a plugin in a specific location on your
        site. could be more convenient to work with in the editor, especially for users
        who are used to scroll to navigate up/down the content, instead of using List
        View.
 66. ![](https://secure.gravatar.com/avatar/302e4aa5f4f537d66a3fae116fd93d32de1a1a4178680ee08ac021289127a3dd?
     s=32&d=mm&r=g)
 67.  [wpexplorer](https://profiles.wordpress.org/wpexplorer/)  8:33 pm _on_ May 18,
     2026
 68. “autoRegister” is something I’ve always thought should be built into blockBlock
     Block is the abstract term used to describe units of markup that, composed together,
     form the content or layout of a webpage using the WordPress editor. The idea combines
     concepts of what in the past may have achieved with shortcodes, custom HTML, and
     embed discovery into a single consistent API and user experience. registration.
     Since we already define attribute types (like boolean/checkbox, string/text field,
     etc.), it makes sense for the corresponding controls to be generated automatically.
 69. In your example “enum” is not localized – is it not possible to provide keys =
     > labels?
 70. Is there a way to check if supports.autoRegister is supported by WordPress besides
     a version check? It would be nice to have a function similar to current_theme_supports()
     for GutenbergGutenberg The Gutenberg project is the new Editor Interface for WordPress.
     The editor improves the process and experience of creating new content, making
     writing rich content much simpler. It uses ‘blocks’ to add richness rather than
     shortcodes, custom HTML etc.
      [https://wordpress.org/gutenberg/](https://wordpress.org/gutenberg/)
     so we can check for specific functionality as the editor evolves.
 71. ps: Clicking “Preview” here in the comments is triggering a 400 error with the
     following response:
 72.     ```notranslate
         {
             "success": false,
             "data": {
                 "error": "cannot_edit_posts",
                 "errorText": "Sorry, you are not allowed to edit posts on this site."
             }
         }
         ```
     
 73. ![](https://secure.gravatar.com/avatar/a93c390b33a86ed30b372debe7c777dac32e61dce7dc93eca093a9dd918539a8?
     s=32&d=mm&r=g)
 74.  [LCweb](https://profiles.wordpress.org/lcweb-projects/)  2:28 pm _on_ May 19,
     2026
 75. A great step ahead for PHPPHP The web scripting language in which WordPress is
     primarily architected. WordPress requires PHP 7.4 or higher devs not familiar 
     with ReactReact React is a JavaScript library that makes it easy to reason about,
     construct, and maintain stateless and stateful user interfaces.
      [https://reactjs.org](https://reactjs.org/)
     but still looks kinda incomplete. There are few supported field types and, as 
     [@wpexplorer](https://profiles.wordpress.org/wpexplorer/) mentioned, the “enum”
     type cannot be used without key/label in most cases.
 76. Is there any workaround to force custom labels in the builder context?
 77. ![](https://secure.gravatar.com/avatar/53b0c8b1fb612fcbaef1773c8a3db49e9b92d9e6683472372f110bdda318aa73?
     s=32&d=mm&r=g)
 78.  [seindal](https://profiles.wordpress.org/seindal/)  7:01 am _on_ May 21, 2026
 79. Thanks for this addition.
 80. How can I get the postId in a callback?
 81. I’ve added ” ‘uses_context’ => [ ‘postId’ ],” to the registration, and the third
     argument to the callback, but the context is only populated when the callback 
     is called for the initial rendering, not for successive invocations from the editor
     through REST.
 82.  * ![](https://secure.gravatar.com/avatar/fa9bb9feab2f2f97662e7b07c9deaf0aca3ec7c037840a8cc3563ec022f77048?
        s=32&d=mm&r=g)
      *  [Miguel Fonseca](https://profiles.wordpress.org/mcsf/)  10:35 am _on_ June
        5, 2026
      * This is indeed a bugbug A bug is an error or unexpected result. Performance
        improvements, code optimization, and are considered enhancements, not defects.
        After feature freeze, only bugs are dealt with, with regressions (adverse changes
        from the previous version) being the highest priority., and I see that you 
        have since reported it, so thank you for that.
      * For fellow readers, the original report is at [#65331](https://core.trac.wordpress.org/ticket/65331),
        subsequently moved to [GutenbergGutenberg The Gutenberg project is the new 
        Editor Interface for WordPress. The editor improves the process and experience
        of creating new content, making writing rich content much simpler. It uses ‘
        blocks’ to add richness rather than shortcodes, custom HTML etc.
         [https://wordpress.org/gutenberg/](https://wordpress.org/gutenberg/)
        78619]([https://github.com/WordPress/gutenberg/issues/78619](https://github.com/WordPress/gutenberg/issues/78619)).
 83. ![](https://secure.gravatar.com/avatar/629aefc25a075a133ab9ade1a4e13986218eeb85d1972b931daa5118c0fa9dbe?
     s=32&d=mm&r=g)
 84.  [Salvatore Corsi](https://profiles.wordpress.org/salvatorecorsi/)  10:39 am _on_
     May 21, 2026
 85. Big day. I’ve been building something close to this for years (a pluginPlugin 
     A plugin is a piece of software containing a group of functions that can be added
     to a WordPress website. They can extend functionality or add new features to your
     WordPress websites. WordPress plugins are written in the PHP programming language
     and integrate seamlessly with WordPress. These can be free in the WordPress.org
     Plugin Directory [https://wordpress.org/plugins/](https://wordpress.org/plugins/)
     or can be cost-based plugin from a third-party. called Define Blocks, github.com/
     salvatorecorsi/define-blocks), so seeing coreCore Core is the set of software 
     required to run WordPress. The Core Development Team builds WordPress. arrive 
     at the same idea with autoRegister is genuinely good news. The scope is intentionally
     minimal in this first iteration, which is the right call. The obvious next questions
     are media, richtext, and nested blocks. Already coming up in the comments. Curious
     to see where the scope grows in 7.x and beyond.
 86. ![](https://secure.gravatar.com/avatar/86c5b1c15595607c033cf9376286dbd2c0d7250bf306f7365611c05424a15c98?
     s=32&d=mm&r=g)
 87.  [Juan Pablo](https://profiles.wordpress.org/jupa8/)  10:43 pm _on_ May 21, 2026
 88. This is very useful, thank you so much. And this has given me an idea: what about
     doing the same thing but using metaboxes like page or post options? I did something
     similar with ReactReact React is a JavaScript library that makes it easy to reason
     about, construct, and maintain stateless and stateful user interfaces.
      [https://reactjs.org](https://reactjs.org/),
     but I don’t always need all the options, and I always have to compile to add them
     to my template. I’ve attached an image for more details.
 89. [https://ibb.co/dw9pxFgf](https://ibb.co/dw9pxFgf)

Comments are closed.

# Post navigation

[← What’s new in Gutenberg 22.6? (25 February)](https://make.wordpress.org/core/2026/02/25/whats-new-in-gutenberg-22-6-25-february/)

[Dev Chat Agenda – March 4, 2026 →](https://make.wordpress.org/core/2026/03/04/dev-chat-agenda-march-04-2026/)