On this page
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
$triggerbool-
Whether to trigger the error for _doing_it_wrong() calls. Default true.
$functionstring-
The function that was called.
$messagestring-
A message explaining what has been done incorrectly.
$versionstring-
The version of WordPress where the message was added.
Source
File: wp-includes/functions.php. View all references
if ( WP_DEBUG && apply_filters( 'doing_it_wrong_trigger_error', true, $function, $message, $version ) ) {
Related
Used By
| Used By | Description |
|---|---|
| _doing_it_wrong() wp-includes/functions.php | Marks something as being incorrectly called. |
Changelog
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/doing_it_wrong_trigger_error