WordPress函数文档format_code_lang()
通过语言代码获取格式化语言 描述 Returns the language for a language co…
通过语言代码获取格式化语言
描述
Returns the language for a language code.
用法
<?php format_code_lang( $code ); ?>
参数
$code
(string) (可选) The two-letter language code.
默认值: Empty string
示例
| 
 1 
2 
3 
4 
5 
6 
7 
8 
 | 
 /* ———————————- 
 * wordpress函数 kim收集 
 * ———————————- */ 
<?php 
$code = ‘da’;
 
$language = format_code_lang( $code );
 
echo $language; // ‘Danish’
 
?> 
 | 
注意
- 使用到 过滤器 ‘lang_codes’ to 过滤器 the languages before formatting $code.
 
历史
- 添加于 版本 3.0.0
 
- 原文:http://codex.wordpress.org/Function_Reference/format_code_lang
 
类别:WordPress函数文档、 
		本文收集自互联网,转载请注明来源。
如有侵权,请联系 wper_net@163.com 删除。

评论功能已经关闭!