deprecated_hook_run WordPress Action Hook
The deprecated_hook_run hook is triggered when a deprecated hook is called. It allows plugins to take action on calls to deprecated hooks, or to log the calls for debugging purposes.
do_action( 'deprecated_hook_run', string $hook , string $replacement , string $version , string $message ) #
Fires when a deprecated hook is called.
Parameters
- $hook
(string)The hook that was called.
- $replacement
(string)The hook that should be used as a replacement.
- $version
(string)The version of WordPress that deprecated the argument used.
- $message
(string)A message regarding the change.
Source
Changelog
Version | Description |
---|---|
4.6.0 | Introduced. |