do_action_deprecated
do_action_deprecated ( $hook_name, $args, $version, $replacement = '', $message = '' )
Parameters:- (string) hook_name The name of the action hook.
- (array) args Array of additional function arguments to be passed to do_action().
- (string) version The version of WordPress that deprecated the hook.
- (string) replacement Optional. The hook that should have been used. Default empty.
- (string) message Optional. A message regarding the change. Default empty.
See:Defined at: - Introduced in WordPress: 4.6.0
- Deprecated in WordPress: —
Description
Fires functions attached to a deprecated action hook.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.