WP_Error::export_to() public WP 5.6.0
Exports the errors in this object into the given one.
{} It's a method of the class: WP_Error{}
No Hooks.
Return
````. Null. Nothing.
Usage
$WP_Error = new WP_Error(); $WP_Error->export_to( $error );
- $error(WP_Error) (required)
- Error object to export into.
Changelog
Since 5.6.0 | Introduced. |
Code of WP_Error::export_to() WP Error::export to WP 5.7
public function export_to( WP_Error $error ) {
static::copy_errors( $this, $error );
}