apply_filters( ‘deprecated_hook_trigger_error’, bool $trigger )

In this article

Filters whether to trigger deprecated hook errors.

Parameters

$triggerbool
Whether to trigger deprecated hook errors. Requires WP_DEBUG to be defined true.

Source

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

Changelog

VersionDescription
4.6.0Introduced.

User Contributed Notes

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