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.


Top ↑

Source

File: wp-admin/includes/ms.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
MU (3.0.0)Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.