_doing_it_wrong


_doing_it_wrong ( $function, $message, $version )

Access:
  • private
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:

Description

Mark something as being incorrectly called.

There is a hook {@see 'doing_it_wrong_run'} 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

wp_doing_cron, doing_action, doing_filter, _wp_scripts_maybe_doing_it_wrong, _get_dropins

Top Google Results

User discussions

wpseek mobile