On this page
wp_import_cleanup( string $id )
Cleanup importer.
Description
Removes attachment based on ID.
Parameters
$idstring Required-
Importer ID.
Source
File: wp-admin/includes/import.php. View all references
function wp_import_cleanup( $id ) {
wp_delete_attachment( $id );
}
Related
Uses
| Uses | Description |
|---|---|
| wp_delete_attachment() wp-includes/post.php | Trashes or deletes an attachment. |
Changelog
| Version | Description |
|---|---|
| 2.0.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_import_cleanup