WP_Error::get_error_messages

SummerySummery

Retrieve all error messages or error messages matching code.

Syntax

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

ParametersParameters

$code

(string|int) (Optional) Retrieve messages matching code, if exists.

Default value: ''

ReturnReturn

(array) Error strings on success, or empty array on failure (if using code parameter).

SourceSource

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


			

ChangelogChangelog

Changelog
Version Description
2.1.0 Introduced.
Scroll to Top