doing_it_wrong_run action-hook . WP 3.1.0
Fires when the given function is being used incorrectly.
Usage
add_action( 'doing_it_wrong_run', 'action_function_name_2070', 10, 3 ); function action_function_name_2070( $function, $message, $version ){ // action... }
- $function(string)
- The function that was called.
- $message(string)
- A message explaining what has been done incorrectly.
- $version(string)
- The version of WordPress where the message was added.
Changelog
Since 3.1.0 | Introduced. |
Where the hook is called
doing_it_wrong_run
wp-includes/functions.php 5277
do_action( 'doing_it_wrong_run', $function, $message, $version );
Where in WP core the hook is used WordPress
wp-includes/functions.php 202
add_action( 'doing_it_wrong_run', 'rest_handle_doing_it_wrong', 10, 3 );