wp_import_cleanup

Cleanup importer.

Description

wp_import_cleanup( (string) $id ); 

Removes attachment based on ID.

Parameters (1)

0. $id (string)
Importer ID.

Usage

  1. if ( !function_exists( 'wp_import_cleanup' ) ) { 
  2. require_once ABSPATH . '/wp-admin/includes/import.php'; 
  3.  
  4. // Importer ID. 
  5. $id = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = wp_import_cleanup($id); 
  9.  

Defined (1)

The function is defined in the following location(s).

/wp-admin/includes/import.php  
  1. function wp_import_cleanup( $id ) {