WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about doing_it_wrong_trigger_error

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/functions.php apply_filters 5814 /**
* Filters whether to trigger an error for _doing_it_wrong() calls.
*
* @since 3.1.0
* @since 5.1.0 Added the $function, $message and $version parameters.
*
* @param bool $trigger Whether to trigger the error for _doing_it_wrong() calls. Default true.
* @param string $function The function that was called.
* @param string $message A message explaining what has been done incorrectly.
* @param string $version The version of WordPress where the message was added.
*/

Hook Parameters

Parameter Type Name Description
bool $trigger Whether to trigger the error for _doing_it_wrong() calls. Default true.
string $function The function that was called.
string $message A message explaining what has been done incorrectly.
string $version The version of WordPress where the message was added.