mu_dropdown_languages WordPress Filter Hook
The mu_dropdown_languages hook allows you to add a language selection dropdown to your WordPress site. This hook is useful if you have a multilingual site and want to give your visitors the ability to easily switch between languages.
apply_filters( 'mu_dropdown_languages', string[] $output , string[] $lang_files , string $current ) #
Filters the languages available in the dropdown.
Parameters
- $output
(string[])Array of HTML output for the dropdown.
- $lang_files
(string[])Array of available language files.
- $current
(string)The current language code.
Source
File: wp-admin/includes/ms.php
Changelog
Version | Description |
---|---|
MU (3.0.0) | Introduced. |