[wp-trac] [WordPress Trac] #62470: Filter for get_the_block_template_html

WordPress Trac noreply at wordpress.org
Tue Nov 19 00:05:47 UTC 2024


#62470: Filter for get_the_block_template_html
-------------------------+-----------------------------
 Reporter:  junaidbhura  |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Editor       |    Version:  trunk
 Severity:  normal       |   Keywords:  has-patch
  Focuses:               |
-------------------------+-----------------------------
 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.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/62470>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list