Localization (category)
| __() | Retrieve translation of the text using a translation file (text domain). |
| _e() | Display translation of the text using a translation file. |
| _ex() | Displays translated text (string) with specified context. |
| _n() | Translates and retrieves the singular or plural form based on the supplied number (1 comment, 2 comments). |
| _n_noop() | Prepares a translation string considering plural forms, but without immediate translation. |
| _nx() | Retrieves the translation of singular or plural form based on the supplied number, with given context. |
| _x() | Retrieve translation for the specified text based on the specified context. Uses a translation file. |
| date_i18n() | Gets the localized date (translated to the current language) from the given unix timestamp. |
| determine_locale() | Gets the current site locale (site language, ex, en_US) desired for the request. |
| esc_attr__() | Translates the text using esc_attr(). |
| esc_attr_e() | Display translated text that has been escaped for safe use in an HTML tag attribute. |
| esc_html__() | Translates specified string and escapes it for safe use in HTML output. |
| esc_html_e() | Translates specified string and escape/clears it for showing on screen - replaces special characters in it with HTML entities. |
| get_locale() | Sets the global variable $locale and gets the current site locale (for example, en_US). |
| get_translations_for_domain() | Returns a translation object for the specified translation domain (textdomain). |
| get_user_locale() | Gets the locale (translation language) of the current or specified user. It will return the value of get_locale() if the user has not set a separate locale in their profile. |
| is_locale_switched() | Checks if the locale (translation language) has been switched, whether the switch_to_locale() function has been used. |
| is_textdomain_loaded() | Determines if the localization file for the specified domain (translation key) is loaded. |
| load_child_theme_textdomain() | Loads the translation file of the child theme (.mo) into memory for further processing. |
| load_muplugin_textdomain() | Connects the .mo translation file for must-use plugins (mu-plugins) from the specified folder. |
| load_plugin_textdomain() | Connects the .mo translation file from the specified folder. Does not work with MU plugins. |
| load_textdomain() | Connects the specified translation file. |
| load_theme_textdomain() | Loads the theme translation file (.mo) into memory for further processing. |
| sanitize_locale_name() | Removes all characters that are not allowed in the locale name. |
| switch_to_locale() | Allows you to programmatically switch the site's language. |
| translate() | Gets the translation of the specified text. |
| translate_user_role() | Translate the role name. |
| unload_textdomain() | Unloads (removes, cancels) the connected translation file. |
| WP_Locale{} | Class that stores translated data for the locale, such as: days of the week, months, time display format. |
| wp_set_script_translations() | Connects a JSON file with string translations for the specified JS script (file). |