[wp-trac] [WordPress Trac] #63808: Block hooks are not applied to plugin-registered templates using `register_block_template()`
WordPress Trac
noreply at wordpress.org
Thu Aug 28 19:08:36 UTC 2025
#63808: Block hooks are not applied to plugin-registered templates using
`register_block_template()`
-----------------------------------+------------------------------
Reporter: iamadisingh | Owner: Bernhard Reiter
Type: defect (bug) | Status: closed
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version: trunk
Severity: normal | Resolution: fixed
Keywords: 2nd-opinion has-patch | Focuses:
-----------------------------------+------------------------------
Changes (by Bernhard Reiter):
* owner: (none) => Bernhard Reiter
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"60688" 60688]:
{{{
#!CommitTicketReference repository="" revision="60688"
Block Hooks: Apply block hooks to plugin-registered templates.
As of WordPress 6.7.0, it is possible -- e.g. for plugins -- to register
block templates via a new API, `register_block_template()`. Unlike block
templates loaded from theme files or from the database, however, those
block templates didn't have Block Hooks applied. This changeset rectifies
this inconsistency.
Props iamadisingh, aljullu, bernhard-reiter.
Fixes #63808.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63808#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list