WC_Admin_Settings::add_error()public staticWC 1.0

Add an error.

Method of the class: WC_Admin_Settings{}

No Hooks.

Return

null. Nothing (null).

Usage

$result = WC_Admin_Settings::add_error( $text );
$text(string) (required)
Message.

WC_Admin_Settings::add_error() code WC 9.0.1

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