Core Function
View Source on Trac ↗ _deprecated_hook()
_deprecated_hook( mixed $hook, mixed $version, mixed $replacement = '', mixed $message = '' ) Marks a deprecated action or filter hook as deprecated and throws a notice.
Parameters 2 required
| Name / Type | Description |
|---|---|
| $hook string | The hook that was used. Required |
| $version string | The version of WordPress that deprecated the hook. Required |
| $replacement string | Optional. The hook that should have been used. Default empty string. |
| $message string | Optional. A message regarding the change. Default empty. |
Return Value
(void)
No return value description available.
Function Information
Since Version
4.6.0
Source File
wp-includes/functions.php
Advertisement