lang_codes WordPress Filter Hook

The lang_codes hook is a great way to manage your language settings in WordPress. This hook allows you to add new language code entries to the WordPress database. This is particularly useful if you need to add a new language to your WordPress site.

apply_filters( 'lang_codes', string[] $lang_codes, string $code ) #

Filters the language codes.


Parameters

$lang_codes

(string[])Array of key/value pairs of language codes where key is the short version.

$code

(string)A two-letter designation of the language.


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.