_deprecated_hook


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

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. Default empty string.
  • (string) message Optional. A message regarding the change. Default empty.
Defined at:
Change Log:
  • 5: .

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_class, _deprecated_constructor, _deprecated_function, _deprecated_argument

Top Google Results

User discussions

wpseek mobile