$hooksfilterHooks()

Filter and return hooks matching given property and value

Usage

$array = $hooks->filterHooks(array $hooks, string $property, $value);

Arguments

NameType(s)Description
$hooksarray

Hooks from getHooks() method

$propertystring

Property name from hook (or hook options)

$valuestring bool int

Value to match

Return value

array


$hooks methods and properties

API reference based on ProcessWire core version 3.0.252