Opened 2 months ago
Last modified 2 months ago
#62470 new enhancement
Filter for get_the_block_template_html
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | trunk |
Component: | Editor | Keywords: | has-patch |
Focuses: | Cc: |
Description
Although a ticket already exists to add a filter for this function: https://core.trac.wordpress.org/ticket/61446
That particular ticket is a bit more ambitious than this one, and perhaps, will take a bit more time and consideration to be merged into core.
This ticket aims to be an interim solution for this.
The proposal is to add a hook for that function. There is currently no clean way to get the markup of the page before it is rendered on the front-end.
There are situations where we want to dynamically update links, and use the HTML processor on the markup dynamically, and there is no way to do this in a clean way for websites that use the Full Site Editor.
Trac ticket: https://core.trac.wordpress.org/ticket/62470