deprecated_hook_run
This is a WordPress - deprecated_hook_run hook. The plugin just uses it.
Wrapper for deprecated hook so we can apply some extra logic.
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 3.3.0 | Introduced. |
Where the hook is called
deprecated_hook_run
woocommerce/includes/wc-deprecated-functions.php 76
do_action( 'deprecated_hook_run', $hook, $replacement, $version, $message );