do_action_deprecated ( $hook_name, $args, $version, $replacement = '', $message = '' )

  • (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.
Defined at:


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.

Related Functions

do_action_ref_array, do_action, _deprecated_file, _deprecated_hook, do_accordion_sections

Top Google Results

User discussions

wpseek mobile