[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 05:16:52 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 apedog):

 Replying to [comment:25 swissspidy]:
 > Related new change in #61518 / [59128], added in WordPress 6.7:
 >
 > Every time an email is sent to the administrator email address
 (`admin_email`), WordPress checks if a user with the same email address
 exists. If so, the email is sent in that user's locale.

 How does core handle multiple emails?
 ie. when (`admin_email`) is a comma-separated list of emails.

 Re: ''wontfix''
 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?
 ie. Achieving the same results with a plugin - **control over the
 language/locale used in emails.**

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


More information about the wp-trac mailing list