-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Allow PHP-Only Block Registration #71792
Copy link
Copy link
Labels
[Feature] Block APIAPI that allows to express the block paradigm.API that allows to express the block paradigm.[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Type] EnhancementA suggestion for improvement.A suggestion for improvement.
Description
What problem does this address?
Currently, registering blocks in core requires writing JavaScript code, even for blocks that are fully rendered in PHP using a render_callback. This adds unnecessary complexity for PHP-focused developers and prevents easier block adoption, especially in classic themes or server-driven workflows.
What is your proposed solution?
Allowing PHP-only block registration. This would:
- Allow blocks to be registered and appear in the editor using only PHP and block metadata.
- Enable WordPress sites and classic themes to adopt blocks more easily; these blocks could be wrappers for legacy PHP functions or shortcodes.
- Open new opportunities for server-side features, custom integrations, and future-proof compatibility.
A pure-PHP registration model would simplify the minimum requirements for block development, making them accessible for a wider developer audience, and help grow the block ecosystem beyond advanced JavaScript usage.
Tasks
- Initial API changes to support PHP-only blocks Allow registering PHP-only blocks #71794
- Expand API to generate inspector controls based on DataForms PHP-only blocks: Generate inspector controls from attributes #74102
- Update documentation accordingly PHP-only blocks: add documentation #72068
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
[Feature] Block APIAPI that allows to express the block paradigm.API that allows to express the block paradigm.[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Type] EnhancementA suggestion for improvement.A suggestion for improvement.
Type
Fields
Give feedbackNo fields configured for Enhancement.
Projects
Status
✅ Done