$wire::getInstance()

Get a ProcessWire instance by ID

Usage

// basic usage
$processWire = $wire::getInstance();

// usage with all arguments
$processWire = $wire::getInstance($instanceID = null);

Arguments

NameType(s)Description
$instanceID (optional)int null

Omit this argument to return the current instance

Return value


$wire methods and properties

API reference based on ProcessWire core version 3.0.251