_deprecated_hook
- %1$s is private and should not be used in themes or plugins directly.
_deprecated_hook ( $hook, $version, $replacement = '', $message = '' )
Access: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: - Introduced in WordPress: 4.6.0
- Deprecated in WordPress: —
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.