WP_Plugin_Dependencies::get_dependency_data( string $slug ): array|false

In this article

Returns API data for the dependency.

Parameters

$slugstringrequired
The dependency’s slug.

Return

array|false The dependency’s API data on success, otherwise false.

Source

public static function get_dependency_data( $slug ) {
	$dependency_api_data = self::get_dependency_api_data();

	if ( isset( $dependency_api_data[ $slug ] ) ) {
		return $dependency_api_data[ $slug ];
	}

	return false;
}

Changelog

VersionDescription
6.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.