Core Function
View Source on Trac ↗ format_code_lang()
format_code_lang( mixed $code = '' ) Returns the language for a language code.
Parameters 0 required
| Name / Type | Description |
|---|---|
| $code string | Optional. The two-letter language code. Default empty. |
Return Value
(string)
string The language corresponding to $code if it exists. If it does not exist,
then the first two letters of $code is returned.
Function Information
Since Version
3.0.0
Source File
wp-admin/includes/ms.php
Advertisement