wppaste
WordPress

apply_filters( 'deprecated_constructor_trigger_error', bool $trigger )

Since
4.3.0
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.

Fired at · 1

  • wp-includes/functions.php:5633_deprecated_constructor()

Source

	 * `WP_DEBUG` must be true in addition to the filter evaluating to true.	 *	 * @since 4.3.0	 *	 * @param bool $trigger Whether to trigger the error for deprecated functions. Default true.	 */	if ( WP_DEBUG && apply_filters( 'deprecated_constructor_trigger_error', true ) ) {		if ( function_exists( '__' ) ) {			if ( $parent_class ) {				$message = sprintf(					/* translators: 1: PHP class name, 2: PHP parent class name, 3: Version number, 4: __construct() method. */					__( 'The called constructor method for %1$s class in %2$s is <strong>deprecated</strong> since version %3$s! Use %4$s instead.' ),					$class_name,

History

Introduced in 4.3.0. Unchanged from 6.7.7 through 7.1.0.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 7.1.0

Signature, return type and hooks compared across 5 parsed releases.

About this page

Parsed data
Generated from the wordpress-develop 6.8.8 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.