Automattic\WooCommerce\Internal\ProductDownloads\ApprovedDirectories

Register::approved_directory_exists()publicWC 1.0

Indicates if the specified URL is already an approved directory.

Method of the class: Register{}

No Hooks.

Return

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 8.6.1

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