Fires functions attached to a deprecated action hook.
Description
When an action hook is deprecated, the do_action() call is replaced with do_action_deprecated(), which triggers a deprecation notice and then fires the original hook.
Parameters
$hook_namestring
The name of the action hook.
$argsarray
Array of additional function arguments to be passed to do_action().
$versionstring
The version of WordPress that deprecated the hook.
$replacementstringoptional
The hook that should have been used. Default empty.Default: ''
$messagestringoptional
A message regarding the change. Default empty.Default: ''
Hooks fired · 1
One hook fires while do_action_deprecated() runs, in this order:
Signature, return type and hooks compared across 5 parsed releases.
About this page
Parsed data
Generated from the wordpress-develop 7.1.0 tag, from src/wp-includes/plugin.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.