WC_REST_Authentication::check_authentication_error( WP_Error|null|bool $error )
Check for authentication error.
Description Description
Parameters Parameters
- $error
-
(Required) Error data.
Return Return
(WP_Error|null|bool)
Source Source
File: includes/class-wc-rest-authentication.php
public function check_authentication_error( $error ) {
// Pass through other errors.
if ( ! empty( $error ) ) {
return $error;
}
return $this->get_error();
}