Filters whether to trigger an error for _doing_it_wrong() calls.
Parameters
$trigger
bool- Whether to trigger the error for _doing_it_wrong() calls. Default true.
$function_name
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.
Source
if ( WP_DEBUG && apply_filters( 'doing_it_wrong_trigger_error', true, $function_name, $message, $version ) ) {
User Contributed Notes
You must log in before being able to contribute a note or feedback.