W3cubDocs

/WordPress

Exception::getType(): string

Like \Exception::getCode(), but a string code.

Return

string

Source

public function getType() {
	return $this->type;
}

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wporg-requests-exception/gettype