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

Automattic\WooCommerce

Packages::missing_package() protected WC 1.0

If a package is missing, add an admin notice.

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

Хуков нет.

Возвращает

Null. Ничего.

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

$result = Packages::missing_package( $package );
$package(строка) (обязательный)
Package name.

Код Packages::missing_package() WC 4.5.2

woocommerce/src/Packages.php
<?php
protected static function missing_package( $package ) {
	if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) {
		error_log(  // phpcs:ignore
			sprintf(
				/* Translators: %s package name. */
				esc_html__( 'Missing the WooCommerce %s package', 'woocommerce' ),
				'<code>' . esc_html( $package ) . '</code>'
			) . ' - ' . esc_html__( 'Your installation of WooCommerce is incomplete. If you installed WooCommerce from GitHub, please refer to this document to set up your development environment: https://github.com/woocommerce/woocommerce/wiki/How-to-set-up-WooCommerce-development-environment', 'woocommerce' )
		);
	}
	add_action(
		'admin_notices',
		function() use ( $package ) {
			?>
			<div class="notice notice-error">
				<p>
					<strong>
						<?php
						printf(
							/* Translators: %s package name. */
							esc_html__( 'Missing the WooCommerce %s package', 'woocommerce' ),
							'<code>' . esc_html( $package ) . '</code>'
						);
						?>
					</strong>
					<br>
					<?php
					printf(
						/* translators: 1: is a link to a support document. 2: closing link */
						esc_html__( 'Your installation of WooCommerce is incomplete. If you installed WooCommerce from GitHub, %1$splease refer to this document%2$s to set up your development environment.', 'woocommerce' ),
						'<a href="' . esc_url( 'https://github.com/woocommerce/woocommerce/wiki/How-to-set-up-WooCommerce-development-environment' ) . '" target="_blank" rel="noopener noreferrer">',
						'</a>'
					);
					?>
				</p>
			</div>
			<?php
		}
	);
}