wp_import_cleanup

Advertisement

Summery Summery

Cleanup importer.

Syntax Syntax

wp_import_cleanup( string $id )

Description Description

Removes attachment based on ID.

Parameters Parameters

$id

(Required) Importer ID.

Source Source

File: wp-admin/includes/import.php

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

Advertisement

Changelog Changelog

Changelog
Version Description
2.0.0 Introduced.

Advertisement

Leave a Reply