wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_import_cleanup › WordPress Function

Since2.0.0
Deprecatedn/a
wp_import_cleanup ( $id )
Parameters:
  • (string) $id Importer ID.
    Required: Yes
Defined at:
Codex:

Cleanup importer.

Removes attachment based on ID.


Source

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