WP_Error::add_data

SummerySummery

Add data for error code.

Syntax

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

DescriptionDescription

The error code can only contain one error data.

ParametersParameters

$data

(mixed) (Required) Error data.

$code

(string|int) (Optional) Error code.

Default value: ''

SourceSource

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


			

ChangelogChangelog

Changelog
Version Description
2.1.0 Introduced.
Scroll to Top