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

* This function deletes the cache entries related to .mo files when triggered
* by specific actions, such as the completion of an upgrade process.
*
* @since 6.5.0
*
* @param WP_Upgrader $upgrader   Unused. WP_Upgrader instance. In other contexts this might be a
*                                Theme_Upgrader, Plugin_Upgrader, Core_Upgrade, or Language_Pack_Upgrader instance.
* @param array       $hook_extra {
*     Array of bulk item update data.

Changelog

VersionDescription
6.1.0Introduced.

User Contributed Notes

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