do_action_deprecated ( $tag, $args, $version, $replacement = false, $message = null )

  • (string) $tag 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.
  • (string) $message Optional. A message regarding the change.
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_hook, _deprecated_file, do_accordion_sections

Top Google Results

User discussions

wpseek mobile