[wp-trac] [WordPress Trac] #61900: Unable to remove hook to display title tag in block theme

WordPress Trac noreply at wordpress.org
Mon Sep 9 08:52:06 UTC 2024


#61900: Unable to remove hook to display title tag in block theme
-----------------------------+------------------------------
 Reporter:  webbingstudio    |       Owner:  (none)
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Themes           |     Version:  6.6
 Severity:  normal           |  Resolution:
 Keywords:  needs-docs       |     Focuses:  template
-----------------------------+------------------------------

Comment (by poena):

 Hi

 Blocks themes use
 [https://developer.wordpress.org/reference/functions/_block_template_render_title_tag/
 _block_template_render_title_tag] to avoid having to declare theme support
 for the title.
 It does the same thing as {{{_wp_render_title_tag}}} without the theme
 support condition, it echo's {{{wp_get_document_title()}}}.

 Plugin developers can use a filter for {{{wp_get_document_title()}}}, for
 example
 [https://developer.wordpress.org/reference/hooks/pre_get_document_title/
 pre_get_document_title]

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/61900#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list