deprecated_file_included
Fires when a deprecated file is called.
Description
do_action( 'deprecated_file_included', (string) $file, (string) $replacement, (string) $version, (string) $message );
Parameters (4)
- 0. $file (string)
- The file that was called.
- 1. $replacement (string)
- The file that should have been included based on ABSPATH.
- 2. $version (string)
- The version of WordPress that deprecated the file.
- 3. $message (string)
- A message regarding the change.
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'deprecated_file_included', $file, $replacement, $version, $message );
- The following example is for adding a hook callback.
- // define the deprecated_file_included callback
- function action_deprecated_file_included( $file, $replacement, $version, $message ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'deprecated_file_included', 'action_deprecated_file_included', 10, 4 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( 'deprecated_file_included', 'action_deprecated_file_included', 10, 4 );
Defined (1)
The action is defined in the following location(s).
- /wp-includes/functions.php
- do_action( 'deprecated_file_included', $file, $replacement, $version, $message );