wppaste
WordPress

apply_filters( 'wp_trigger_error_trigger_error', bool $trigger, string $function_name, string $message, int $error_level )

Since
7.0.0
Filters whether to trigger an error.

Compatibility

WordPress
since 7.0.0
  • 6.7.7
  • 6.8.8
  • 6.9.7
  • 7.0.4
  • 7.1.0

Present in 2 of the 5 tracked releases, added in 7.0.0.

Parameters

$triggerbool
Whether to trigger the error. Default true.
$function_namestring
The function that triggered the error.
$messagestring
The message explaining the error.
$error_levelint
The designated error type for this error.

Where this hook fires · 1

  • wp-includes/functions.php:6218wp_trigger_error()

Source code

	 *	 * @param bool   $trigger       Whether to trigger the error. Default true.	 * @param string $function_name The function that triggered the error.	 * @param string $message       The message explaining the error.	 * @param int    $error_level   The designated error type for this error.	 */	if ( ! apply_filters( 'wp_trigger_error_trigger_error', true, $function_name, $message, $error_level ) ) {		return;	} 	// Bail out if WP_DEBUG is not turned on.	if ( ! WP_DEBUG ) {		return;

Changelog

Introduced in 7.0.0. Unchanged from 7.0.4 through 7.1.0.

  1. 7.0.4
  2. 7.1.0

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

About this page

Parsed data
Generated from the wordpress-develop 7.1.0 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.