deprecated_file_included хук-событиеWP 2.5.0

Fires when a deprecated file is called.

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

add_action( 'deprecated_file_included', 'wp_kama_deprecated_file_included_action', 10, 4 );

/**
 * Function for `deprecated_file_included` action-hook.
 * 
 * @param string $file        The file that was called.
 * @param string $replacement The file that should have been included based on ABSPATH.
 * @param string $version     The version of WordPress that deprecated the file.
 * @param string $message     A message regarding the change.
 *
 * @return void
 */
function wp_kama_deprecated_file_included_action( $file, $replacement, $version, $message ){

	// action...
}
$file(строка)
The file that was called.
$replacement(строка)
The file that should have been included based on ABSPATH.
$version(строка)
The version of WordPress that deprecated the file.
$message(строка)
A message regarding the change.

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

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

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

_deprecated_file()
deprecated_file_included
wp-includes/functions.php 5547
do_action( 'deprecated_file_included', $file, $replacement, $version, $message );

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

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