WordPress开发者和主题制作者的搜索引擎



wp_import_cleanup ›

Since2.0.0
已弃用n/a
wp_import_cleanup ( $id )
参数:
  • (string) $id Importer ID.
    Required: Yes
定义在:
文档:

Cleanup importer.

Removes attachment based on ID.



源码

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