Core Class
View Source on Trac ↗
Core Class
WP_Textdomain_Registry
class WP_Textdomain_Registry
// Constructor: function Object() { [native code] } Core class used for registering text domains.
Methods 9 methods
| Method / Return | Description |
|---|---|
| init() void | Initializes the registry. |
| get() (string | Returns the languages directory path for a specific domain and locale.
Parameters: $domain: mixed, $locale: mixed |
| has() bool | Determines whether any MO file paths are available for the domain.
Parameters: $domain: mixed |
| set() void | Sets the language directory path for a specific domain and locale.
Parameters: $domain: mixed, $locale: mixed, $path: mixed |
| set_custom_path() void | Sets the custom path to the plugin's/theme's languages directory.
Parameters: $domain: mixed, $path: mixed |
| get_language_files_from_path() array | Retrieves translation files from the specified path.
Parameters: $path: mixed |
| invalidate_mo_files_cache() void | Invalidate the cache for .mo files.
Parameters: $upgrader: mixed, $hook_extra: mixed |
| get_paths_for_domain() string[] | Returns possible language directory paths for a given text domain.
Parameters: $domain: mixed |
| get_path_from_lang_dir() (string | Gets the path to the language directory for the current domain and locale.
Parameters: $domain: mixed, $locale: mixed |
Properties
| Property / Type | Description |
|---|---|
| $all mixed public | No description available. |
| $current mixed public | No description available. |
| $custom_paths mixed public | No description available. |
| $cached_mo_files mixed public | No description available. |
| $domains_with_translations mixed public | No description available. |
Class Information
Since Version
6.1.0
Source File
wp-includes/class-wp-textdomain-registry.php
Advertisement