[ Index ] |
PHP Cross Reference of WordPress |
[Source view] [Print] [Project Stats]
Locale API: WP_Textdomain_Registry class
File Size: | 130 lines (3 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
WP_Textdomain_Registry:: (5 methods):
get()
set()
reset()
get_path_from_lang_dir()
set_cached_mo_files()
Class: WP_Textdomain_Registry - X-Ref
Core class used for registering text domains.get( $domain ) X-Ref |
Returns the MO file path for a specific domain. return: string|false MO file path or false if there is none available. param: string $domain Text domain. since: 5.6.0 |
set( $domain, $path ) X-Ref |
Sets the MO file path for a specific domain. param: string $domain Text domain. param: string|false $path Language directory path or false if there is none available. since: 5.6.0 |
reset() X-Ref |
Resets the registry state. since: 5.6.0 |
get_path_from_lang_dir( $domain ) X-Ref |
Gets the path to a translation file in the languages directory for the current locale. return: string|false MO file path or false if there is none available. param: string $domain Text domain. since: 5.6.0 |
set_cached_mo_files() X-Ref |
Reads and caches all available MO files from the plugins and themes language directories. since: 5.6.0 |
Generated: Thu Nov 12 01:00:03 2020 | Cross-referenced by PHPXref 0.7.1 |