Calls the functions added to a filter hook.
<?php $app->hook->apply_filter($hook, $value); ?>
$hook: (string) (required) The name of the filter hook.
$value: (mixed) (required) The value that can be modified by filters hooked to $hook.
(mixed) The result of $value after all hooked functions are applied to it.
Return or echo after filtering.
$app = \Liten\Liten::getInstance(); return $app->hook->apply_filter('hook_filter', $value, $arg_1, $arg_2); echo $app->hook->apply_filter('hook_filter', $value, $arg_1, $arg_2);
Since 1.0.0
$app->hook->apply_filter() is located in app/src/Hooks.php.