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

Automattic\WooCommerce

Packages::load_packages() protected WC 1.0

Loads packages after plugins_loaded hook.

Each package should include an init file which loads the package so it can be used by core.

{} Это метод класса: Packages{}

Хуки из метода
Возвращает

null. Ничего.

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

$result = Packages::load_packages();

Код Packages::load_packages() WC 5.5.2

<?php
protected static function load_packages() {
	foreach ( self::$packages as $package_name => $package_class ) {
		if ( ! self::package_exists( $package_name ) ) {
			self::missing_package( $package_name );
			continue;
		}
		call_user_func( array( $package_class, 'init' ) );
	}

	// Proxies "activated_plugin" hook for embedded packages listen on WC plugin activation
	// https://github.com/woocommerce/woocommerce/issues/28697.
	if ( is_admin() ) {
		$activated_plugin = get_transient( 'woocommerce_activated_plugin' );
		if ( $activated_plugin ) {
			delete_transient( 'woocommerce_activated_plugin' );

			/**
			 * WooCommerce is activated hook.
			 *
			 * @since 5.0.0
			 * @param bool $activated_plugin Activated plugin path,
			 *                               generally woocommerce/woocommerce.php.
			 */
			do_action( 'woocommerce_activated_plugin', $activated_plugin );
		}
	}
}