WC_Product_CSV_Importer_Controller::add_error
Add error message.
Method of the class: WC_Product_CSV_Importer_Controller{}
No Hooks.
Returns
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() WC Product CSV Importer Controller::add error code WC 10.6.2
protected function add_error( $message, $actions = array() ) {
$this->errors[] = array(
'message' => $message,
'actions' => $actions,
);
}