WP_Textdomain_Registry::set_cached_mo_files( string $path )

In this article

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.

Reads and caches all available MO files from a given directory.

Parameters

$pathstringrequired
Language directory path.

Source

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

VersionDescription
6.1.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.