wp_import_cleanup() – Cleanup importer.

You appear to be a bot. Output may be restricted

Description

Cleanup importer.

Removes attachment based on ID.

Usage

wp_import_cleanup( $id );

Parameters

$id
( string ) required – Importer ID.

Returns

void

Source

File name: wordpress/wp-admin/includes/import.php
Lines:

1 to 3 of 3
function wp_import_cleanup( $id ) {
  wp_delete_attachment( $id );
}
 

 View on GitHub View on Trac