WP_Error::add

SummerySummery

Add an error or append additional message to an existing error.

Syntax

WP_Error::add( string|int $code, string $message, mixed $data = '' )

ParametersParameters

$code

(string|int) (Required) Error code.

$message

(string) (Required) Error message.

$data

(mixed) (Optional) Error data.

Default value: ''

SourceSource

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


			

ChangelogChangelog

Changelog
Version Description
2.1.0 Introduced.
Scroll to Top