deprecated_argument_run хук-событиеWP 3.0.0

Fires when a deprecated argument is called.

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

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

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

	// action...
}
$function_name(строка)
The function that was called.
$message(строка)
A message regarding the change.
$version(строка)
The version of WordPress that deprecated the argument used.

Список изменений

С версии 3.0.0 Введена.

Где вызывается хук

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

Где используется хук в WordPress

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