WP_Error::export_to() WordPress Method
The WP_Error::export_to() method is used to export the contents of a WP_Error object to an array. This is useful for debugging purposes or for displaying the error to the user.
WP_Error::export_to( WP_Error $error ) #
Exports the errors in this object into the given one.
Contents
Parameters
- $error
(WP_Error)(Required)Error object to export into.
Source
File: wp-includes/class-wp-error.php
public function export_to( WP_Error $error ) { static::copy_errors( $this, $error ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
5.6.0 | Introduced. |