WordPress at a glance
filter is not described

lang_codes filter-hook . WP MU

Filters the language codes.

Usage

add_filter( 'lang_codes', 'filter_function_name_2512', 10, 2 );
function filter_function_name_2512( $lang_codes, $code ){
	// filter...

	return $lang_codes;
}
$lang_codes(array)
Key/value pair of language codes where key is the short version.
$code(string)
A two-letter designation of the language.

Notes

  • Since MU (3.0.0)

Where the hook is called

format_code_lang()
lang_codes
wp-admin/includes/ms.php 468
$lang_codes = apply_filters( 'lang_codes', $lang_codes, $code );

Where the hook is used (in WP core)

Does not used.