$hookshasPathHooks()

Return whether or not any path hooks are pending

Available since version 3.0.173.

Usage

// basic usage
$bool = $hooks->hasPathHooks();

// usage with all arguments
$bool = $hooks->hasPathHooks(string $requestPath = '');

Arguments

NameType(s)Description
$requestPath (optional)string

Optionally provide request path to determine if any might match 3.0.174+

Return value

bool


$hooks methods and properties

API reference based on ProcessWire core version 3.0.251