apply_filters( ‘signup_get_available_languages’, string[] $languages )

In this article

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.

Source

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

Changelog

VersionDescription
4.4.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.