WordPress at a glance
function is not described

WP_Error::merge_from() public WP 5.6.0

Merges the errors in the given error object into this one.

{} It's a method of the class: WP_Error{}

No Hooks.

Return

````. Null. Nothing.

Usage

$WP_Error = new WP_Error();
$WP_Error->merge_from( $error );
$error(WP_Error) (required)
Error object to merge.

Changelog

Since 5.6.0 Introduced.

Code of WP_Error::merge_from() WP 5.7

<?php
public function merge_from( WP_Error $error ) {
	static::copy_errors( $error, $this );
}