WP HOOKS
filtrod 4.4.0

signup_get_available_languages

Args 1Plik wp-signup.phpDokumentacja WP ↗

Opis — z kodu źródłowego

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.

Parametry

ParametrTypOpis
$languagesstring[]Array of available language codes. Language codes are formed by stripping the .mo extension from the language file names.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'signup_get_available_languages', 'twoja_funkcja' );

function twoja_funkcja($param_1) {
	// Twój kod
}

Popularne w tej kategorii