WordPress как на ладони
wordpress jino
событие не описано

deprecated_hook_run хук-событие . WP 4.6.0

Fires when a deprecated hook is called.

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

add_action( 'deprecated_hook_run', 'action_function_name_5592', 10, 4 );
function action_function_name_5592( $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.

Связи хука

Используется в: _deprecated_hook()

Остальные хуки из: _deprecated_hook():

Кусок кода с хуком

Фрагмент из: wp-includes/functions.php WP 4.9
...
 * @param string $version     The version of WordPress that deprecated the hook.
 * @param string $replacement Optional. The hook that should have been used.
 * @param string $message     Optional. A message regarding the change.
 */
function _deprecated_hook( $hook, $version, $replacement = null, $message = null ) {
	/**
	 * Fires when a deprecated hook is called.
	 *
	 * @since 4.6.0
	 *
	 * @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.
	 */
	do_action( 'deprecated_hook_run', $hook, $replacement, $version, $message );

	/**
	 * Filters whether to trigger deprecated hook errors.
	 *
	 * @since 4.6.0
	 *
	 * @param bool $trigger Whether to trigger deprecated hook errors. Requires
	 *                      `WP_DEBUG` to be defined true.
	 */
	if ( WP_DEBUG && apply_filters( 'deprecated_hook_trigger_error', true ) ) {
		$message = empty( $message ) ? '' : ' ' . $message;
		if ( ! is_null( $replacement ) ) {
			/* translators: 1: WordPress hook name, 2: version number, 3: alternative hook name */
			trigger_error( sprintf( __( '%1$s is <strong>deprecated</strong> since version %2$s! Use %3$s instead.' ), $hook, $version, $replacement ) . $message );
		} else {
...