On this page
WP_Error::export_to( WP_Error $error )
Exports the errors in this object into the given one.
Parameters
$errorWP_Error Required-
Error object to export into.
Source
File: wp-includes/class-wp-error.php. View all references
public function export_to( WP_Error $error ) {
static::copy_errors( $this, $error );
}
Changelog
| Version | Description |
|---|---|
| 5.6.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_error/export_to