WC_Product_CSV_Importer_Controller::add_error
Add error message.
Метод класса: WC_Product_CSV_Importer_Controller{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->add_error( $message, $actions );
- $message(строка) (обязательный)
- Error message.
- $actions(массив)
- List of actions with
'url'and'label'.
По умолчанию:array()
Код WC_Product_CSV_Importer_Controller::add_error() WC Product CSV Importer Controller::add error WC 10.6.2
protected function add_error( $message, $actions = array() ) {
$this->errors[] = array(
'message' => $message,
'actions' => $actions,
);
}