WP_Error::merge_from()publicWP 5.6.0

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

Method of the class: WP_Error{}

No Hooks.

Return

null. Nothing (null).

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.

WP_Error::merge_from() code WP 6.5.2

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