Skip to main content

CorePluginResource

A resource that fetches a WordPress plugin from wordpress.org.

Hierarchy

Index

Constructors

constructor

Properties

publicoptionalprogress

progress?: ProgressTracker

The progress tracker.

Accessors

isAsync

  • get isAsync(): boolean
  • Whether this Resource is loaded asynchronously


    Returns boolean

name

  • get name(): string
  • The name of the referenced file


    Returns string

Methods

getURL

  • getURL(): string
  • @inheritDoc

    Returns string

resolve

  • resolve(): Promise<File>
  • Resolves the file contents


    Returns Promise<File>

    The resolved file.

setPlayground

  • Parameters

    Returns void

staticcreate

  • Creates a new Resource based on the given file reference


    Parameters

    Returns Resource

    A new Resource instance