WC_REST_Authentication::get_error()protectedWC 1.0

Get authentication error.

Method of the class: WC_REST_Authentication{}

No Hooks.

Return

WP_Error|null..

Usage

// protected - for code of main (parent) or child class
$result = $this->get_error();

WC_REST_Authentication::get_error() code WC 8.6.1

protected function get_error() {
	return $this->error;
}