Hi @etos996
I’m sorry, but I’m not sure if I understand the question. Are you saying that you want to delete the products that have been removed from your import file? If so, I’m afraid that’s impossible with an “Existing Items” import.
If I misunderstood, could you please elaborate on what you’re trying to do and include some screenshots of the issue?
Please see screenshot.
https://prnt.sc/ql144z
“1757 skipped” How we can delete these products?
-
This reply was modified 6 years, 5 months ago by
etos996.
-
This reply was modified 6 years, 5 months ago by
etos996.
Hi @etos996
“1757 skipped” How we can delete these products?
It depends. If they’re skipped because of the ‘wp_all_import_is_post_to_update’ filter, or if they’re skipped because you’ve disabled “Update existing posts”, then you could use the ‘wp_all_import_post_skipped’ hook to delete the posts from the site:
add_action( 'wp_all_import_post_skipped', 'my_delete_skipped', 10, 3 );
function my_delete_skipped( $post_id, $import_id, $xml_data ) {
if ( ! empty( $post_id ) ) {
wp_delete_post( $post_id );
}
}
If they’re skipped for any other reason, you’d have to manually delete them.
@etos996 I’m marking this as resolved since we have not heard back. Let us know if you still have any questions regarding this issue. Anyone else, please start a new thread.