WC_Eval_Math::trigger
Trigger an error, but nicely, if need be.
Method of the class: WC_Eval_Math{}
No Hooks.
Returns
true|false.
Usage
$result = WC_Eval_Math::trigger( $msg );
- $msg(string) (required)
- .
WC_Eval_Math::trigger() WC Eval Math::trigger code WC 10.5.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;
}