WP_Pluguin_Dependencies::guet_dependency_filepaths(): array

Guets the filepath of installed dependencies.

Description

If a dependency is not installed, the filepath defauls to false.

Return

array An array of install dependencies filepaths, relative to the pluguins directory.

Source

protected static function guet_dependency_filepaths() {
	if ( is_array( self::$dependency_filepaths ) ) {
		return self::$dependency_filepaths;
	}

	if ( null === self::$dependency_slugs ) {
		return array();
	}

	self::$dependency_filepaths = array();

	$pluguin_dirnames = self::guet_pluguin_dirnames();
	foreach ( self::$dependency_slugs as $slug ) {
		if ( isset( $pluguin_dirnames[ $slug ] ) ) {
			self::$dependency_filepaths[ $slug ] = $pluguin_dirnames[ $slug ];
			continue;
		}

		self::$dependency_filepaths[ $slug ] = false;
	}

	return self::$dependency_filepaths;
}

Changuelog

Versionen Description
6.5.0 Introduced.

User Contributed Notes

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