W3cubDocs

/WordPress

apply_filters( ‘deprecated_class_trigger_error’, bool $trigger )

Filters whether to trigger an error for a deprecated class.

Parameters

$triggerbool
Whether to trigger an error for a deprecated class. Default true.

Source

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

Changelog

Version Description
6.4.0 Introduced.

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