Reference

Guide

$kirby->apply()

Applies a hook to the given value; the value that gets modified by the hooks is always the last argument

$kirby->apply(string $name, mixed $args = null): mixed

Parameters

Name Type Default Description
$name string

Hook name

$args mixed null

Arguments to pass to the hooks

Return type

mixed

Source code

kirby/src/Cms/App.php#L195