Implementing Soft Delete for Bulk Actions / Empty Trash
For this I suggest you to use given solution which ensure each post is processed individually without interrupting the batch processing, and also allowing soft deletion to work for both emptying the trash and bulk actions. You need to update the softDelete function with the given code. function softDelete( $postId ) { if ( get_post_type( … Read more