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.
Source
File: wp-admin/includes/ms.php
Changelog
Version | Description |
---|---|
MU (3.0.0) | Introduced. |