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.


null. Nothing.


// protected - for code of main (parent) or child class
$result = $this->add_error( $message, $actions );
$message(string) (required)
Error message.
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,