WC_Admin_Settings::add_error()
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() WC Admin Settings::add error code WC 9.7.1
public static function add_error( $text ) { self::$errors[] = $text; }