[wp-trac] [WordPress Trac] #48122: Add separator argument for wp_get_document_title()

WordPress Trac noreply at wordpress.org
Thu Sep 4 12:11:49 UTC 2025


#48122: Add separator argument for wp_get_document_title()
------------------------------------------+------------------------------
 Reporter:  ngdangtu                      |       Owner:  (none)
     Type:  feature request               |      Status:  new
 Priority:  normal                        |   Milestone:  Awaiting Review
Component:  Themes                        |     Version:
 Severity:  normal                        |  Resolution:
 Keywords:  dev-feedback has-patch close  |     Focuses:  ui, template
------------------------------------------+------------------------------
Changes (by callumbw95):

 * keywords:  dev-feedback has-patch => dev-feedback has-patch close


Comment:

 Hi @ngdangtu,

 I have taken a look into this, and it looks like the separator variable
 `$sep` now has a filter attached to it's value `document_title_separator`.
 This feels like it should be enough to achieve the same functionality as
 what your suggested parameter was originally set to achieve. As of such I
 feel like we can close this ticket now, and have provisionally attached
 the `close` tag. Please feel free to remove this tag if you feel
 otherwise. 😃

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


More information about the wp-trac mailing list