Automattic\WooCommerce\Internal\ProductDownloads\ApprovedDirectories

Register::approved_directory_exists()publicWC 1.0

Indicates if the specified URL is already an approved directory.

Метод класса: Register{}

No Hooks.

Return

true|false.

Usage

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

Code of Register::approved_directory_exists() WC 7.1.0

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