ResourceStorage
in
Interface ResourceStorage
ResourceStorage is an abstraction layer for various storages for WordPress files such as plugins and themes. It provides a common interface for downloading the files whether they are stored locally or remotely.
Table of Contents
- download() : string|null
- Download the resource.
- get_supported_resource() : string
- Return supported resource type.
Methods
download()
Download the resource.
public
download(string $slug) : string|null
Parameters
- $slug : string
-
resource slug.
Return values
string|null — downloaded local path.get_supported_resource()
Return supported resource type.
public
get_supported_resource() : string