WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Самая быстрая Тема-конструктор для WordPress
функция не описана

reset_maps_after_update() WC 1.0

Resets the autoloader after a plugin update.

Хуков нет.

Возвращает

true/false. The passed in $response param.

Использование

reset_maps_after_update( $response, $hook_extra, $result );
$response(true/false) (обязательный)
Installation response.
$hook_extra(массив) (обязательный)
Extra arguments passed to hooked filters.
$result(массив) (обязательный)
Installation result data.

Код reset_maps_after_update() WC 4.6.1

<?php
function reset_maps_after_update( $response, $hook_extra, $result ) {
	global $jetpack_autoloader_latest_version;
	global $jetpack_packages_classmap;

	if ( isset( $hook_extra['plugin'] ) ) {
		/*
		 * $hook_extra['plugin'] is the path to the plugin file relative to the plugins directory:
		 * https://core.trac.wordpress.org/browser/tags/5.4/src/wp-admin/includes/class-wp-upgrader.php#L701
		 */
		$plugin = $hook_extra['plugin'];

		if ( false === strpos( $plugin, '/', 1 ) ) {
			// Single-file plugins don't use packages, so bail.
			return $response;
		}

		if ( ! is_plugin_active( $plugin ) ) {
			// The updated plugin isn't active, so bail.
			return $response;
		}

		/*
		 * $plugin is the path to the plugin file relative to the plugins directory.
		 * What if this plugin is not in the plugins directory, for example an mu plugin?
		 */
		$plugin_path = trailingslashit( WP_PLUGIN_DIR ) . trailingslashit( explode( '/', $plugin )[0] );

		if ( is_readable( $plugin_path . 'vendor/autoload_functions.php' ) ) {
			// The plugin has a v2.x autoloader, so reset it.
			$jetpack_autoloader_latest_version = null;
			$jetpack_packages_classmap         = array();

			set_up_autoloader();
		}
	}

	return $response;
}