WC_Product_CSV_Importer_Controller::add_error()protectedWC 1.0

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 8.7.0

protected function add_error( $message, $actions = array() ) {
	$this->errors[] = array(
		'message' => $message,
		'actions' => $actions,
	);
}