Opened 6 months ago
Last modified 4 months ago
#61074 new enhancement
Block Hooks: Enable for post content
Reported by: | Bernhard Reiter | Owned by: | |
---|---|---|---|
Milestone: | Future Release | Priority: | normal |
Severity: | normal | Version: | |
Component: | General | Keywords: | |
Focuses: | Cc: |
Description
The Block Hooks mechanism is currently enabled for templates, template parts, patterns, and Navigation menu -- i.e. parts of a site's layout that are edited in the Site Editor. It is not enabled for post content: Hooked blocks won't be inserted into a post (or page), even if the latter contains the corresponding anchor block.
Prior to #59646, this was due to a technical limitation. However, with that limitation removed, we could consider enabling Block Hooks for post content.
This might have some benefits -- among other things, it might align better with users' expectations. But maybe there are also reasons to refrain from doing so?
Note: See
TracTickets for help on using
tickets.
One potential downside of enabling this that I can think of vs templates is when a plugin has hooked a block into my Single Post/Page template I can remove that block from that one template.
If the block has been hooked into my content I'd have to potentially go through each individual post/page to remove it.