WP_Error::merge_from() WordPress Method
The WP_Error::merge_from() method is used to merge another WP_Error object into the current one. This is useful for combining multiple error objects into a single one.
WP_Error::merge_from( WP_Error $error ) #
Merges the errors in the given error object into this one.
Contents
Parameters
- $error
(WP_Error)(Required)Error object to merge.
Source
File: wp-includes/class-wp-error.php
public function merge_from( WP_Error $error ) { static::copy_errors( $error, $this ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
5.6.0 | Introduced. |