Core Function
View Source on Trac ↗ do_action_deprecated()
do_action_deprecated(
mixed $hook_name,
mixed $args,
mixed $version,
mixed $replacement = '',
mixed $message = ''
) Fires functions attached to a deprecated action hook.
Parameters 3 required
| Name / Type | Description |
|---|---|
| $hook_name string | The name of the action hook. Required |
| $args array | Array of additional function arguments to be passed to do_action(). 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
(void)
No return value description available.
Function Information
Since Version
4.6.0
Source File
wp-includes/plugin.php
Advertisement