deprecated_file_included
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_included
wp-includes/functions.php 5746
do_action( 'deprecated_file_included', $file, $replacement, $version, $message );