Automattic\WooCommerce\Internal\ProductDownloads\ApprovedDirectories
Register::approved_directory_exists()
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() Register::approved directory exists WC 9.6.1
public function approved_directory_exists( string $url ): bool { return (bool) $this->get_by_url( $url ); }