deprecated_constructor_trigger_error

deprecated_constructor_trigger_error

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.5.2

apply_filters('deprecated_constructor_trigger_error') is found 1 times:

  • /wp-includes/functions.php line 5594
    	 * @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,