WordPress at Your Fingertips
function is not described

WC_Eval_Math::trigger() private WC 1.0

Trigger an error, but nicely, if need be.

{} It's a method of the class: WC_Eval_Math{}

No Hooks.

Return

true|false.

Usage

$result = WC_Eval_Math::trigger( $msg );
$msg(string) (required)
-

Code of WC_Eval_Math::trigger() WC 5.8.0

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;
}