Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

wp_dropdown_languages()

3 tags 1 category

wp_dropdown_languages() — Displays or returns a Language selector.

Inputs: $args (string|array): Optional. Array or string of arguments for outputting the language selector. Field $id (string): ID attribute of the select element. Default ‘locale’. Field $name (string): Name attribute of the select element. Default ‘locale’. Field $languages (string[]): List of installed languages, contain only the locales. Default empty array. Field $translations (array): List of available translations. Default result of wp_get_available_translations(). Field $selected (string): Language which should be selected. Default empty. Field $echo (bool|int): Whether to echo the generated markup. Accepts 0, 1, or their boolean equivalents. Default 1. Field $show_available_translations (bool): Whether to show available translations. Default true.

Returns string|void: HTML dropdown list of languages. Always returned, whether or not ‘echo’ is true; nothing is returned when the ‘id’ or ‘name’ argument is empty.

Term Connections

Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.

Loading term connections…