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