wp_import_cleanup( string $id )

In this article

Cleanup importer.

Description

Removes attachment based on ID.

Parameters

$idstringrequired
Importer ID.

Source

function wp_import_cleanup( $id ) {
	wp_delete_attachment( $id );
}

Changelog

VersionDescription
2.0.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.