[wp-trac] [WordPress Trac] #59510: Add filter for the block-template viewport meta tag

WordPress Trac noreply at wordpress.org
Sat Sep 30 20:43:31 UTC 2023


#59510: Add filter for the block-template viewport meta tag
-------------------------+-----------------------------
 Reporter:  joemaller    |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  General      |    Version:  trunk
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+-----------------------------
 The base block-template.php used for full site editing does not provide a
 hook for modifying the viewport meta tag. Despite being inserted into
 wp_head by the `_block_template_viewport_meta_tag` action hook, the actual
 tag is basically hard coded and untouchable: https://github.com/WordPress
 /wordpress-develop/blob/00ed25e2c9b20607418cbe8a6103c336d1bf92bd/src/wp-
 includes/block-template.php#L273-L275.

 This ticket introduces a new filter which allows for customization of this
 meta tag.

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


More information about the wp-trac mailing list