WP_Error::export_to()publicWP 5.6.0

Exports the errors in this object into the given one.

Method of the class: WP_Error{}

No Hooks.

Return

null. Nothing (null).

Usage

$WP_Error = new WP_Error();
$WP_Error->export_to( $error );
$error(WP_Error) (required)
Error object to export into.

Changelog

Since 5.6.0 Introduced.

WP_Error::export_to() code WP 6.6.2

public function export_to( WP_Error $error ) {
	static::copy_errors( $this, $error );
}