deprecated_argument_run
Fires when a deprecated argument is called.
Description
Parameters (3)
- 0. $function (string)
- The function that was called.
- 1. $message (string)
- A message regarding the change.
- 2. $version (string)
- The version of WordPress that deprecated the argument used.
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'deprecated_argument_run', $function, $message, $version );
- The following example is for adding a hook callback.
- // define the deprecated_argument_run callback
- function action_deprecated_argument_run( $function, $message, $version ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'deprecated_argument_run', 'action_deprecated_argument_run', 10, 3 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( 'deprecated_argument_run', 'action_deprecated_argument_run', 10, 3 );
Defined (2)
The action is defined in the following location(s).
- /wp-includes/functions.php
- do_action( 'deprecated_argument_run', $function, $message, $version );
- /wp-includes/rest-api.php
- add_action( 'deprecated_argument_run', 'rest_handle_deprecated_argument', 10, 3 );