Title: deprecated_hook_run
Published: August 16, 2016
Last modified: February 24, 2026

---

# do_action( ‘deprecated_hook_run’, string $hook, string $replacement, string $version, string $message )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/hooks/deprecated_hook_run/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/deprecated_hook_run/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/deprecated_hook_run/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/deprecated_hook_run/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/deprecated_hook_run/?output_format=md#wp--skip-link--target)

Fires when a deprecated hook is called.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/deprecated_hook_run/?output_format=md#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](https://developer.wordpress.org/reference/hooks/deprecated_hook_run/?output_format=md#source)󠁿

    ```php
    do_action( 'deprecated_hook_run', $hook, $replacement, $version, $message );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/functions.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-includes/functions.php#L5960)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/functions.php#L5960-L5960)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/deprecated_hook_run/?output_format=md#related)󠁿

| Used by | Description | 
| [_deprecated_hook()](https://developer.wordpress.org/reference/functions/_deprecated_hook/)`wp-includes/functions.php` |

Marks a deprecated action or filter hook as deprecated and throws a notice.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/deprecated_hook_run/?output_format=md#changelog)󠁿

| Version | Description | 
| [4.6.0](https://developer.wordpress.org/reference/since/4.6.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fdeprecated_hook_run%2F)
before being able to contribute a note or feedback.