wp_import_cleanup() WordPress Function
The wp_import_cleanup() function is used to clean up after an import operation. This function should be called after importing data from an external source. It will remove any unused data that was imported, and it will also update any imported data that has changed since the last import.
wp_import_cleanup( string $id ) #
Cleanup importer.
Description
Removes attachment based on ID.
Parameters
- $id
(string)(Required)Importer ID.
Source
File: wp-admin/includes/import.php
function wp_import_cleanup( $id ) { wp_delete_attachment( $id ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
2.0.0 | Introduced. |