wpseek.com
WordPress开发者和主题制作者的搜索引擎



signup_get_available_languages › WordPress过滤钩子

Since4.4.0
已弃用n/a
apply_filters( 'signup_get_available_languages', get_available_languages()
参数:
  • (string[]) $languages Array of available language codes. Language codes are formed by stripping the .mo extension from the language file names.
    Required: Yes
定义在:
文档:

Filters the list of available languages for front-end site sign-ups.

Passing an empty array to this hook will disable output of the setting on the sign-up form, and the default language will be used when creating the site.

Languages not already installed will be stripped.





源码

$languages = (array) apply_filters( 'signup_get_available_languages', get_available_languages() );