close
Skip to content

Allow PHP-Only Block Registration #71792

@priethor

Description

@priethor

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

Metadata

Metadata

Assignees

Labels

No fields configured for Enhancement.

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions