wireInstance() function

Get or set the current ProcessWire instance

Available since version 3.0.125.

Usage

// basic usage
$processWire = wireInstance();

// usage with all arguments
$processWire = wireInstance($wire = null);

Arguments

NameType(s)Description
wire (optional)Wire, null

To set specify ProcessWire instance or any Wire-derived object in it, or omit to get current instance.

Return value


Functions methods and properties

API reference based on ProcessWire core version 3.0.244

I just love the easy and intuitive ProcessWire API. ProcessWire rocks!” —Jens Martsch, Web developer