WP_Hook::apply_filters

SummerySummery

Calls the callback functions that have been added to a filter hook.

Syntax

WP_Hook::apply_filters( mixed $value, array $args )

ParametersParameters

$value

(mixed) (Required) The value to filter.

$args

(array) (Required) Additional parameters to pass to the callback functions. This array is expected to include $value at index 0.

ReturnReturn

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

SourceSource

File: wp-includes/class-wp-hook.php


			

ChangelogChangelog

Changelog
Version Description
4.7.0 Introduced.
Scroll to Top