mu_dropdown_languages filter-hookWP 3.0.0

Filters the languages available in the dropdown.

Usage

add_filter( 'mu_dropdown_languages', 'wp_kama_mu_dropdown_languages_filter', 10, 3 );

/**
 * Function for `mu_dropdown_languages` filter-hook.
 * 
 * @param string[] $output     Array of HTML output for the dropdown.
 * @param string[] $lang_files Array of available language files.
 * @param string   $current    The current language code.
 *
 * @return string[]
 */
function wp_kama_mu_dropdown_languages_filter( $output, $lang_files, $current ){

	// filter...
	return $output;
}
$output(string[])
Array of HTML output for the dropdown.
$lang_files(string[])
Array of available language files.
$current(string)
The current language code.

Changelog

Since 3.0.0 Introduced.

Where the hook is called

mu_dropdown_languages()
mu_dropdown_languages
wp-admin/includes/ms.php 670
$output = apply_filters( 'mu_dropdown_languages', $output, $lang_files, $current );

Where the hook is used in WordPress

Usage not found.