A WordPress-centric search engine for devs and theme authors



deprecated_constructor_trigger_error ›

Since4.3.0
Deprecatedn/a
apply_filters( 'deprecated_constructor_trigger_error', true )
Parameters:
  • (bool) $trigger Whether to trigger the error for deprecated functions. Default true.
    Required: Yes
Defined at:
Codex:

Filters whether to trigger an error for deprecated functions.

WP_DEBUG must be true in addition to the filter evaluating to true.





Source

if ( WP_DEBUG && apply_filters( 'deprecated_constructor_trigger_error', true ) ) {