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