WC_REST_Authentication::set_error( WP_Error $error )
Set authentication error.
Description Description
Parameters Parameters
- $error
-
(Required) Authentication error data.
Source Source
File: includes/class-wc-rest-authentication.php
protected function set_error( $error ) { // Reset user. $this->user = null; $this->error = $error; }