_WP_Editors::get_mce_locale()
Returns the TinyMCE locale.
Method of the class: _WP_Editors{}
No Hooks.
Return
String
.
Usage
$result = _WP_Editors::get_mce_locale();
Changelog
Since 4.8.0 | Introduced. |
_WP_Editors::get_mce_locale() WP Editors::get mce locale code WP 6.7.1
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; }