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