_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:
  • 5: .

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.

Related Functions

rest_handle_doing_it_wrong, wp_doing_cron, doing_action, doing_filter, _get_dropins

Top Google Results

User discussions

wpseek mobile