WordPress at Your Fingertips
function is not described

WC_Admin_Meta_Boxes::add_error() public WC 1.0

Add an error message.

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

No Hooks.

Return

null. Nothing.

Usage

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

Code of WC_Admin_Meta_Boxes::add_error() WC 5.8.0

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