_doing_it_wrong
_doing_it_wrong ( $function_name, $message, $version )
Parameters:- (string) function_name The function that was called.
- (string) message A message explaining what has been done incorrectly.
- (string) version The version of WordPress where the message was added.
Defined at:Change Log: - Introduced in WordPress: 3.1.0
- Deprecated in WordPress: —
Description
Marks something as being incorrectly called.There is a {@see 'doing_it_wrong_run'} hook that will be called that can be used
to get the backtrace up to what file and function called the deprecated function.
The current behavior is to trigger a user error if `WP_DEBUG` is true.