WP_Plugin_Dependencies::get_dependent_filepath( string $slug ): string|false

In this article

Gets a dependent plugin’s filepath.

Parameters

$slugstringrequired
The dependent plugin’s slug.

Return

string|false The dependent plugin’s filepath, relative to the plugins directory, or false if the plugin has no dependencies.

Source

public static function get_dependent_filepath( $slug ) {
	$filepath = array_search( $slug, self::$dependent_slugs, true );

	return $filepath ? $filepath : false;
}

Changelog

VersionDescription
6.5.0Introduced.

User Contributed Notes

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