wp_import_cleanup( string $id )
Cleanup importer.
Description
Removes attachment based on ID.
Parameters
- $id
-
(string) (Required) Importer ID.
Source
File: wp-admin/includes/import.php
function wp_import_cleanup( $id ) { wp_delete_attachment( $id ); }
Changelog
Version | Description |
---|---|
2.0.0 | Introduced. |
© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_import_cleanup