apply_filters( 'doing_it_wrong_trigger_error', bool $trigger, string $function, string $message, string $version )

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 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.

Top ↑

Source

File: wp-includes/functions.php. View all references

if ( WP_DEBUG && apply_filters( 'doing_it_wrong_trigger_error', true, $function, $message, $version ) ) {


Top ↑

Changelog

Changelog
Version Description
5.1.0 Added the $function, $message and $version parameters.
3.1.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.