WC_Admin_Meta_Boxes::add_error()public staticWC 1.0

Add an error message.

Method of the class: WC_Admin_Meta_Boxes{}

No Hooks.

Return

null. Nothing (null).

Usage

$result = WC_Admin_Meta_Boxes::add_error( $text );
$text(string) (required)
Error to add.

WC_Admin_Meta_Boxes::add_error() code WC 8.7.0

public static function add_error( $text ) {
	self::$meta_box_errors[] = $text;
}