_doing_it_wrong


_doing_it_wrong ( $function, $message, $version )

Parameters:
  • (string) function 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

Mark something as being incorrectly called.There is a hook Array 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