Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
WC_Eval_Math::trigger( string $msg )
Trigger an error, but nicely, if need be.
Description Description
Parameters Parameters
- $msg
-
(Required)
Return Return
(bool)
Source Source
File: includes/libraries/class-wc-eval-math.php
private static function trigger( $msg ) { self::$last_error = $msg; if ( ! Constants::is_true( 'DOING_AJAX' ) && Constants::is_true( 'WP_DEBUG' ) ) { echo "\nError found in:"; self::debugPrintCallingFunction(); trigger_error( $msg, E_USER_WARNING ); } return false; }