#64639 closed defect (bug) (fixed)
Allow PHP-Only Block Registration
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 7.0 | Priority: | normal |
| Severity: | normal | Version: | |
| Component: | Editor | Keywords: | has-patch has-unit-tests gutenberg-merge add-to-field-guide needs-dev-note |
| Focuses: | Cc: |
Description (last modified by )
This ticket tracks the backport of PHP files for the following Gutenberg updates:
https://github.com/WordPress/gutenberg/pull/75543
If the supports.auto_registersupports.autoRegister flag is opted in when executing register_block_type(), those blocks will be exposed as the autoRegisterBlocks block editor setting.
The editor will use that setting to generate the blocks using server-side rendering.
Change History (10)
This ticket was mentioned in PR #10932 on WordPress/wordpress-develop by @wildworks.
4 weeks ago
#1
- Keywords has-patch has-unit-tests added
@wildworks commented on PR #10932:
4 weeks ago
#3
@oandregal, Based on your suggestion, I've added server-side type checking in 658b7af6ed40562da9aabaaad86c4b66d1e75525. I'd be happy to see if this is what you wanted.
@oandregal commented on PR #10932:
4 weeks ago
#4
@t-hamano thank you, that's great :)
@wildworks commented on PR #10932:
4 weeks ago
#5
@oandregal Thanks for the review! After committing this PR to core, I would like to backport similar changes to Gutenberg.
#7
@
4 weeks ago
- Owner set to wildworks
- Resolution set to fixed
- Status changed from new to closed
In 61661:
#8
@
11 days ago
This is THE FIRST block-editor-related good news since Gutenberg was first implemented.
This is also a nice, extended, resource of some additional blocks being implemented using this method:
https://getbutterfly.com/php-only-block-registration-in-wordpress/
#9
@
11 days ago
- Keywords add-to-field-guide needs-dev-note added
This will need a dedicated dev note.
@wildworks are you gonna handle that task?
And of course it's worth a mention in the Field Guide.
#10
@
11 days ago
A dev note for this feature is being tracked on the Gutenberg side and has just been published.
https://make.wordpress.org/core/2026/03/03/php-only-block-registration/
Trac ticket:
## Use of AI Tools