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.

Description Description

Parameters Parameters


(bool) Whether to trigger the error for _doing_it_wrong() calls. Default true.


(string) The function that was called.


(string) A message explaining what has been done incorrectly.


(string) The version of WordPress where the message was added.

Top ↑

Source Source

File: wp-includes/functions.php

View on Trac

Top ↑

Changelog Changelog

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

Top ↑

User Contributed Notes User Contributed Notes

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