WPDev.one
Core Function
View Source on Trac ↗

apply_filters_ref_array()

apply_filters_ref_array( mixed $hook_name, mixed $args )

Calls the callback functions that have been added to a filter hook, specifying arguments in an array.

Parameters 2 required

Name / Type Description
$hook_name
string

The name of the filter hook.

Required
$args
array

The arguments supplied to the functions hooked to `$hook_name`.

Required

Return Value

(mixed)
The filtered value after all hooked functions are applied to it.

Function Information

Since Version
3.0.0
Source File
wp-includes/plugin.php
Advertisement