Uses
Uses | Description |
---|---|
wp-includes/l10n.php: get_user_locale() | Retrieves the locale of a user. |
Returns the TinyMCE locale.
(string)
File: wp-includes/class-wp-editor.php
public static function get_mce_locale() { if ( empty( self::$mce_locale ) ) { $mce_locale = get_user_locale(); self::$mce_locale = empty( $mce_locale ) ? 'en' : strtolower( substr( $mce_locale, 0, 2 ) ); // ISO 639-1. } return self::$mce_locale; }
Version | Description |
---|---|
4.8.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/_wp_editors/get_mce_locale