$hooks→hasPathHooks()
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
Name | Type(s) | Description |
---|---|---|
$requestPath (optional) | string | Optionally provide request path to determine if any might match 3.0.174+ |
Return value
bool
API reference based on ProcessWire core version 3.0.251