wp-includes/class-wp-error.php:289Exports the errors in this object into the given one.
$errorWP_Errorvoid public function export_to( WP_Error $error ) { static::copy_errors( $this, $error ); }Introduced in 5.6.0. One change between 6.7.7 and 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
none to void.verified against sourcesrc/wp-includes/class-wp-error.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.