Automattic\WooCommerce\Internal\ProductDownloads\ApprovedDirectories

Register::approved_directory_existspublicWC 1.0

Indicates if the specified URL is already an approved directory.

Method of the class: Register{}

No Hooks.

Returns

true|false.

Usage

$Register = new Register();
$Register->approved_directory_exists( $url ): bool;
$url(string) (required)
The URL to check.

Register::approved_directory_exists() code WC 9.9.3

public function approved_directory_exists( string $url ): bool {
	return (bool) $this->get_by_url( $url );
}