WordPress at a glance
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_8876', 10, 4 );
function filter_function_name_8876( $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.

Список изменений

С версии 3.1.0 Введена.
С версии 5.1.0 Added the $function, $message and $version parameters.

Где вызывается хук

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

Где используется хук в ядре WP

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