Core Function
View Source on Trac ↗ apply_filters()
apply_filters( mixed $hook_name, mixed $value, mixed $args ) Calls the callback functions that have been added to a filter hook.
Parameters 3 required
| Name / Type | Description |
|---|---|
| $hook_name string | The name of the filter hook. Required |
| $value mixed | The value to filter. Required |
| mixed | ...$args Optional. Additional parameters to pass to the callback functions. Required |
Return Value
(mixed)
The filtered value after all hooked functions are applied to it.
Function Information
Since Version
0.71
Source File
wp-includes/plugin.php
Advertisement