This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
WP_Textdomain_Registry::set_cached_mo_files( string $path )
Reads and caches all available MO files from a given directory.
Parameters
- $path
-
(Required) Language directory path.
Source
File: wp-includes/class-wp-textdomain-registry.php
private function set_cached_mo_files( $path ) {
$this->cached_mo_files[ $path ] = array();
$mo_files = glob( $path . '/*.mo' );
if ( $mo_files ) {
$this->cached_mo_files[ $path ] = $mo_files;
}
}
Changelog
Version | Description |
---|---|
6.1.0 | Introduced. |