A WordPress-centric search engine for devs and theme authors



doing_it_wrong_trigger_error ›

Since5.0.0
Deprecatedn/a
apply_filters( 'doing_it_wrong_trigger_error', true, $function, $message, $version )
Parameters: (4)
  • (bool) $trigger Whether to trigger the error for _doing_it_wrong() calls. Default true.
    Required: Yes
  • (string) $function The function that was called.
    Required: Yes
  • (string) $message A message explaining what has been done incorrectly.
    Required: Yes
  • (string) $version The version of WordPress where the message was added.
    Required: Yes
Defined at:
Codex:

Filters whether to trigger an error for _doing_it_wrong() calls.





Source

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