_deprecated_hook


_deprecated_hook ( $hook, $version, $replacement = null, $message = null )

Access:
  • private
Parameters:
  • (string) $hook The hook that was used.
  • (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:

Description

Marks a deprecated action or filter hook as deprecated and throws a notice.

Use the {@see 'deprecated_hook_run'} action to get the backtrace describing where the deprecated hook was called.

Default behavior is to trigger a user error if WP_DEBUG is true.

This function is called by the do_action_deprecated() and apply_filters_deprecated() functions, and so generally does not need to be called directly.

Related Functions

_deprecated_file, _deprecated_function, _deprecated_constructor, _deprecated_argument, ms_deprecated_blogs_file

Top Google Results

User discussions

wpseek mobile