WordPress at Your Fingertips
filter is not described

doing_it_wrong_trigger_error filter-hook . WP 3.1.0

Filters whether to trigger an error for _doing_it_wrong() calls.


add_filter( 'doing_it_wrong_trigger_error', 'filter_function_name_252', 10, 4 );
function filter_function_name_252( $trigger, $function, $message, $version ){
	// filter...

	return $trigger;
Whether to trigger the error for _doing_it_wrong() calls.
Default: true
The function that was called.
A message explaining what has been done incorrectly.
The version of WordPress where the message was added.


Since 3.1.0 Introduced.
Since 5.1.0 Added the $function, $message and $version parameters.

Where the hook is called

wp-includes/functions.php 5292
if ( WP_DEBUG && apply_filters( 'doing_it_wrong_trigger_error', true, $function, $message, $version ) ) {

Where in WP core the hook is used WordPress

wp-includes/rest-api.php 203
add_filter( 'doing_it_wrong_trigger_error', '__return_false' );