WP_Error::get_error_message

SummerySummery

Get single error message.

Syntax

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

DescriptionDescription

This will get the first message available for the code. If no code is given then the first code available will be used.

ParametersParameters

$code

(string|int) (Optional) Error code to retrieve message.

Default value: ''

ReturnReturn

(string)

SourceSource

File: wp-includes/class-wp-error.php


			

ChangelogChangelog

Changelog
Version Description
2.1.0 Introduced.
Scroll to Top