WooCommerce Code Reference

ResourceStorages
in package

Class ResourceStorages

Table of Contents

$storages  : array<string|int, mixed>
Storage collection.
add_storage()  : void
Add a downloader.
download()  : false|string
Download the resource.
is_supported_resource()  : bool
Check if the resource is supported.

Properties

Methods

download()

Download the resource.

public download(string $slug, string $resource_type) : false|string
Parameters
$slug : string

The slug of the resource to download.

$resource_type : string

The resource type to download.

Return values
false|string

is_supported_resource()

Check if the resource is supported.

public is_supported_resource(string $resource_type) : bool
Parameters
$resource_type : string

The resource type to check.

Return values
bool