WordPress at a glance
function is not described

Automattic\WooCommerce\Admin

FeaturePlugin::get_dependency_errors() protected WC 1.0

Get an array of dependency error messages.

{} It's a method of the class: FeaturePlugin{}

No Hooks.

Return

Array. Nothing.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_dependency_errors();

Code of FeaturePlugin::get_dependency_errors() WC 5.3.0

<?php
protected function get_dependency_errors() {
	$errors                      = array();
	$wordpress_version           = get_bloginfo( 'version' );
	$minimum_wordpress_version   = '5.4';
	$minimum_woocommerce_version = '4.8';
	$wordpress_minimum_met       = version_compare( $wordpress_version, $minimum_wordpress_version, '>=' );
	$woocommerce_minimum_met     = class_exists( 'WooCommerce' ) && version_compare( WC_VERSION, $minimum_woocommerce_version, '>=' );

	if ( ! $woocommerce_minimum_met ) {
		$errors[] = sprintf(
			/* translators: 1: URL of WooCommerce plugin, 2: The minimum WooCommerce version number */
			__( 'The WooCommerce Admin feature plugin requires <a href="%1$s">WooCommerce</a> %2$s or greater to be installed and active.', 'woocommerce' ),
			'https://wordpress.org/plugins/woocommerce/',
			$minimum_woocommerce_version
		);
	}

	if ( ! $wordpress_minimum_met ) {
		$errors[] = sprintf(
			/* translators: 1: URL of WordPress.org, 2: The minimum WordPress version number */
			__( 'The WooCommerce Admin feature plugin requires <a href="%1$s">WordPress</a> %2$s or greater to be installed and active.', 'woocommerce' ),
			'https://wordpress.org/',
			$minimum_wordpress_version
		);
	}

	return $errors;
}