apply_filters( 'doing_it_wrong_trigger_error', bool $trigger , string $function_name , string $message , string $version )
Filters whether to trigger an error for _doing_it_wrong() calls.
Parameters
- $trigger
-
Whether to trigger the error for _doing_it_wrong() calls. Default true.
- $function_name
-
The function that was called.
- $message
-
A message explaining what has been done incorrectly.
- $version
-
The version of WordPress where the message was added.
Source
Changelog
Version | Description |
---|---|
5.1.0 | Added the $function_name, $message and $version parameters. |
3.1.0 | Introduced. |