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)


Top ↑

Return Return

(bool)


Top ↑

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


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.