deprecated_argument_run
Action HookDescription
Fires when a deprecated argument is called.Hook Information
File Location |
wp-includes/functions.php
View on GitHub
|
Hook Type | Action |
Line Number | 5871 |
Hook Parameters
Type | Name | Description |
---|---|---|
string
|
$function_name
|
The function that was called. |
string
|
$message
|
A message regarding the change. |
string
|
$version
|
The version of WordPress that deprecated the argument used. |
Usage Examples
Basic Usage
<?php
// Hook into deprecated_argument_run
add_action('deprecated_argument_run', 'my_custom_function', 10, 3);
function my_custom_function($function_name, $message, $version) {
// Your custom code here
}
Source Code Context
wp-includes/functions.php:5871
- How this hook is used in WordPress core
<?php
5866 *
5867 * @param string $function_name The function that was called.
5868 * @param string $message A message regarding the change.
5869 * @param string $version The version of WordPress that deprecated the argument used.
5870 */
5871 do_action( 'deprecated_argument_run', $function_name, $message, $version );
5872
5873 /**
5874 * Filters whether to trigger an error for deprecated arguments.
5875 *
5876 * @since 3.0.0
PHP Documentation
<?php
/**
* Fires when a deprecated argument is called.
*
* @since 3.0.0
*
* @param string $function_name The function that was called.
* @param string $message A message regarding the change.
* @param string $version The version of WordPress that deprecated the argument used.
*/
Quick Info
- Hook Type: Action
- Parameters: 3
- File: wp-includes/functions.php
Related Hooks
Related hooks will be displayed here in future updates.