WC_Admin_Settings::add_error()public staticWC 1.0

Add an error.

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

No Hooks.

Return

null. Nothing.

Usage

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

Code of WC_Admin_Settings::add_error() WC 6.7.0

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