WP_Error::merge_from
Merges the errors in the given error object into this one.
Method of the class: WP_Error{}
No Hooks.
Returns
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() WP Error::merge from code WP 6.9.1
public function merge_from( WP_Error $error ) {
static::copy_errors( $error, $this );
}