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.


Language directory path.


*     @type string $action       Type of action. Default 'update'.
*     @type string $type         Type of update process. Accepts 'plugin', 'theme', 'translation', or 'core'.
*     @type bool   $bulk         Whether the update process is a bulk update. Default true.
*     @type array  $plugins      Array of the basename paths of the plugins' main files.
*     @type array  $themes       The theme slugs.
*     @type array  $translations {
*         Array of translations update data.
*         @type string $language The locale the translation is for.



User Contributed Notes

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