deprecated_hook_run хук-событиеWC 3.3.0

Это хук WordPress - deprecated_hook_run. Плагин его просто использует.

Wrapper for deprecated hook so we can apply some extra logic.

Использование

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(строка)
The hook that was called.
$replacement(строка)
The hook that should be used as a replacement.
$version(строка)
The version of WordPress that deprecated the argument used.
$message(строка)
A message regarding the change.

Список изменений

С версии 3.3.0 Введена.

Где вызывается хук

wc_deprecated_hook()
deprecated_hook_run
woocommerce/includes/wc-deprecated-functions.php 73
do_action( 'deprecated_hook_run', $hook, $replacement, $version, $message );

Где используется хук в WooCommerce

Использование не найдено.