Automattic\WooCommerce\Internal\ProductDownloads\ApprovedDirectories

Register::approved_directory_exists()publicWC 1.0

Indicates if the specified URL is already an approved directory.

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

Хуков нет.

Возвращает

true|false.

Использование

$Register = new Register();
$Register->approved_directory_exists( $url ): bool;
$url(строка) (обязательный)
The URL to check.

Код Register::approved_directory_exists() WC 8.7.0

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