Cleanup importer.
Description
Removes attachment based on ID.
Parameters
$id
stringrequired- Importer ID.
Source
function wp_import_cleanup( $id ) {
wp_delete_attachment( $id );
}
Changelog
Version | Description |
---|---|
2.0.0 | Introduced. |
Cleanup importer.
Removes attachment based on ID.
$id
stringrequiredfunction wp_import_cleanup( $id ) {
wp_delete_attachment( $id );
}
Version | Description |
---|---|
2.0.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.