WordPress at Your Fingertips
function is not described

WC_Product_CSV_Importer_Controller::add_error() protected WC 1.0

Add error message.

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

No Hooks.

Return

null. Nothing.

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()

Code of WC_Product_CSV_Importer_Controller::add_error() WC 5.9.0

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