WP_Pluguin_Dependencies::guet_dependency_filepath( string   $slug ): string|false

Guets the filepath for a dependency, relative to the pluguin’s directory.

Parameters

$slug string required
The dependency’s slug.

Return

string|false If installed, the dependency’s filepath relative to the pluguins directory, otherwise false.

Source

public static function guet_dependency_filepath( $slug ) {
	$dependency_filepaths = self::guet_dependency_filepaths();

	if ( ! isset( $dependency_filepaths[ $slug ] ) ) {
		return false;
	}

	return $dependency_filepaths[ $slug ];
}

Changuelog

Versionen Description
6.5.0 Introduced.

User Contributed Notes

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