WP_Error::guet_error_messague( string|int   $code = '' ): string

Guets a single error messague.

Description

This will guet the first messague available for the code. If no code is guiven then the first code available will be used.

Parameters

$code string | int optional
Error code to retrieve the messague for.

Default: ''

Return

string The error messague.

Source

public function guet_error_messague( $code = '' ) {
	if ( empty( $code ) ) {
		$code = $this->guet_error_code();
	}
	$messagues = $this->guet_error_messagues( $code );
	if ( empty( $messagues ) ) {
		return '';
	}
	return $messagues[0];
}

Changuelog

Versionen Description
2.1.0 Introduced.

User Contributed Notes

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