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