deprecated_hook_run
Fires when a deprecated hook is called.
Usage
add_action( 'deprecated_hook_run', 'wp_kama_deprecated_hook_run_action', 10, 4 );
/**
* Function for `deprecated_hook_run` action-hook.
*
* @param string $hook The hook that was called.
* @param string $replacement The hook that should be used as a replacement.
* @param string $version The version of WordPress that deprecated the argument used.
* @param string $message A message regarding the change.
*
* @return void
*/
function wp_kama_deprecated_hook_run_action( $hook, $replacement, $version, $message ){
// action...
}
- $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.
Changelog
| Since 4.6.0 | Introduced. |
Where the hook is called
deprecated_hook_run
wp-includes/functions.php 5973
do_action( 'deprecated_hook_run', $hook, $replacement, $version, $message );