Title: deprecated_function_run
Published: April 25, 2014
Last modified: August 20, 2026

---

# do_action( ‘deprecated_function_run’, string $function_name, string $replacement, string $version )

## In this article

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

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

Fires when a deprecated function is called.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/deprecated_function_run/?output_format=md#parameters)󠁿

 `$function_name`string

The function that was called.

`$replacement`string

The function that should have been called.

`$version`string

The version of WordPress that deprecated the function.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/deprecated_function_run/?output_format=md#source)󠁿

    ```php
    do_action( 'deprecated_function_run', $function_name, $replacement, $version );
    ```

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

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

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

Marks a function as deprecated and inform when it has been used.

  |

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

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

## User Contributed Notes

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