WC_REST_Authentication::set_error
Set authentication error.
Метод класса: WC_REST_Authentication{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->set_error( $error );
- $error(WP_Error) (обязательный)
- Authentication error data.
Код WC_REST_Authentication::set_error() WC REST Authentication::set error WC 11.2.2
protected function set_error( $error ) {
// Reset user.
$this->user = null;
$this->error = $error;
}