lang_codes

过滤钩子


apply_filters( 'lang_codes', $lang_codes, $code )
参数
  • (string[])
    $lang_codes
    Array of key/value pairs of language codes where key is the short version.
    Required:
  • (string)
    $code
    A two-letter designation of the language.
    Required:
定义位置
  • wp-admin/includes/ms.php
    , line 542
引入
MU (3.0.0)
弃用

Filters the language codes.

$lang_codes = apply_filters( 'lang_codes', $lang_codes, $code );