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

$trigger

(bool) Whether to trigger the error for deprecated functions. Default true.

Source

File: wp-includes/functions.php

View on Trac

Changelog

Version Description
4.3.0 Introduced.

© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/deprecated_constructor_trigger_error