W3cubDocs

/WordPress

WP_Textdomain_Registry::init()

Initializes the registry.

Description

Hooks into the ‘upgrader_process_complete’ filter to invalidate MO files caches.

Source

public function init() {
	add_action( 'upgrader_process_complete', array( $this, 'invalidate_mo_files_cache' ), 10, 2 );
}

Changelog

Version Description
6.5.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_textdomain_registry/init