WC_API_Exception::getErrorCode()publicWC 2.2

Returns the error code

Method of the class: WC_API_Exception{}

No Hooks.

Return

String.

Usage

$WC_API_Exception = new WC_API_Exception();
$WC_API_Exception->getErrorCode();

Changelog

Since 2.2 Introduced.

WC_API_Exception::getErrorCode() code WC 8.7.0

public function getErrorCode() {
	return $this->error_code;
}