[wp-trac] [WordPress Trac] #49971: Add get_admin_locale() that is separate from WPLANG / get_locale() / get_user_locale()

WordPress Trac noreply at wordpress.org
Wed Nov 27 11:51:21 UTC 2024


#49971: Add get_admin_locale() that is separate from WPLANG / get_locale() /
get_user_locale()
-----------------------------+--------------------------------------
 Reporter:  apedog           |       Owner:  (none)
     Type:  feature request  |      Status:  closed
 Priority:  normal           |   Milestone:
Component:  I18N             |     Version:
 Severity:  normal           |  Resolution:  wontfix
 Keywords:  has-patch        |     Focuses:  ui, rtl, administration
-----------------------------+--------------------------------------

Comment (by swissspidy):

 > ie. when (admin_email) is a comma-separated list of emails.

 That's not really supported in general...

 > Can I hook onto the administration email and filter the user whose
 locale settings are used? Or even set the locale programmatically -
 independent of any user?

 Sure, yeah that should be possible. It might be tricky to find the right
 filter for each email, but in theory building that in a plugin should be
 possible. If needed, you could open a new ticket to suggest adding new
 filters or hooks or so.

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


More information about the wp-trac mailing list