apply_filters( ‘deprecated_constructor_trigger_error’, bool $trigger )

Filters whether to trigger an error for deprecated functions.

Description

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

Parameters

$triggerbool
Whether to trigger the error for deprecated functions. Default true.

Source

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

Changelog

VersionDescription
4.3.0Introduced.

User Contributed Notes

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