WordPress at Your Fingertips
function is not described

Automattic\WooCommerce

Packages::package_exists() public WC 1.0

Checks a package exists by looking for it's directory.

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

No Hooks.

Return

true|false.

Usage

$result = Packages::package_exists( $package );
$package(string) (required)
Package name.

Code of Packages::package_exists() WC 5.9.0

public static function package_exists( $package ) {
	return file_exists( dirname( __DIR__ ) . '/packages/' . $package );
}