WC_Product_CSV_Importer_Controller::add_error()protectedWC 1.0

Add error message.

Method of the class: WC_Product_CSV_Importer_Controller{}

No Hooks.

Return

null. Nothing (null).

Usage

// protected - for code of main (parent) or child class
$result = $this->add_error( $message, $actions );
$message(string) (required)
Error message.
$actions(array)
List of actions with 'url' and 'label'.
Default: array()

WC_Product_CSV_Importer_Controller::add_error() code WC 8.7.0

protected function add_error( $message, $actions = array() ) {
	$this->errors[] = array(
		'message' => $message,
		'actions' => $actions,
	);
}