wpseek.com
A WordPress-centric search engine for devs and theme authors



signup_get_available_languages › WordPress Filter Hooks

Since4.4.0
Deprecatedn/a
apply_filters( 'signup_get_available_languages', get_available_languages()
Parameters:
  • (string[]) $languages Array of available language codes. Language codes are formed by stripping the .mo extension from the language file names.
    Required: Yes
Defined at:
Codex:

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

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

Languages not already installed will be stripped.





Source

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