Filter hook 'signup_get_available_languages'
in WP Core File wp-signup.php at line 911
Description
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.
Occurrences
Filename |
Line Number |
wp-signup.php |
911 |
Parameters
Type |
Name |
Description |
string[] |
$languages |
Array of available language codes. Language codes are formed by stripping the .mo extension from the language file names. |
PHP Doc
/**
* 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.
*
* @since 4.4.0
*
* @param string[] $languages Array of available language codes. Language codes are formed by
* stripping the .mo extension from the language file names.
*/