Filters the list of available languages for front-end site sign-ups.
Description
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.
Parameters
$languagesstring[]
Array of available language codes. Language codes are formed by stripping the .mo extension from the language file names.
915*916* @since 4.4.0917*918* @param string[]$languagesArray of available language codes. Language codes are formed by919* stripping the .mo extension from the language file names.920*/921$languages=(array)apply_filters('signup_get_available_languages',get_available_languages());922923/*924* Strip any non-installed languages andreturn.925*926* Re-call get_available_languages() here in case a language pack was installed927* in a callback hooked to the 'signup_get_available_languages' filter before this point.
History
Introduced in 4.4.0. Unchanged from 6.7.7 through 7.1.0.