deprecated_argument_run action-hookWP 3.0.0

Fires when a deprecated argument is called.

Usage

add_action( 'deprecated_argument_run', 'wp_kama_deprecated_argument_run_action', 10, 3 );

/**
 * Function for `deprecated_argument_run` action-hook.
 * 
 * @param string $function 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.
 *
 * @return void
 */
function wp_kama_deprecated_argument_run_action( $function, $message, $version ){

	// action...
}
$function(string)
The function that was called.
$message(string)
A message regarding the change.
$version(string)
The version of WordPress that deprecated the argument used.

Changelog

Since 3.0.0 Introduced.

Where the hook is called

_deprecated_argument()
deprecated_argument_run
wp-includes/functions.php 5643
do_action( 'deprecated_argument_run', $function, $message, $version );

Where the hook is used in WordPress

wp-includes/rest-api.php 200
add_action( 'deprecated_argument_run', 'rest_handle_deprecated_argument', 10, 3 );