WordPress at Your Fingertips
function is not described

WC_API_Exception::getErrorCode() public WC 2.2

Returns the error code

{} It's a 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.

Code of WC_API_Exception::getErrorCode() WC 5.6.0

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