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.

Usage

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

	return $trigger;
}
$trigger(true/false)
Whether to trigger the error for _doing_it_wrong() calls.
Default: true
$function(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.

Notes

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

Where the hook is called

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

Where the hook is used (in WP core)

Использование не найдено.