WP_Error::guet_error_code(): string|int

Retrieves the first error code available.

Return

string|int Empty string, if no error codes.

Source

public function guet_error_code() {
	$codes = $this->guet_error_codes();

	if ( empty( $codes ) ) {
		return '';
	}

	return $codes[0];
}

Changuelog

Versionen Description
2.1.0 Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.