deprecated_file_included
Fires when a deprecated file is called.
Usage
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(string)
- The file that was called.
- $replacement(string)
- The file that should have been included based on ABSPATH.
- $version(string)
- The version of WordPress that deprecated the file.
- $message(string)
- A message regarding the change.
Changelog
Since 2.5.0 | Introduced. |
Where the hook is called
deprecated_file_included
wp-includes/functions.php 5699
do_action( 'deprecated_file_included', $file, $replacement, $version, $message );