WPDev.one
Core Function
View Source on Trac ↗

apply_filters_deprecated()

apply_filters_deprecated( mixed $hook_name, mixed $args, mixed $version, mixed $replacement = '', mixed $message = '' )

Fires functions attached to a deprecated filter hook.

Parameters 3 required

Name / Type Description
$hook_name
string

The name of the filter hook.

Required
$args
array

Array of additional function arguments to be passed to apply_filters().

Required
$version
string

The version of WordPress that deprecated the hook.

Required
$replacement
string

Optional. The hook that should have been used. Default empty.

$message
string

Optional. A message regarding the change. Default empty.

Return Value

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

Function Information

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