Skip to content

Commit

Permalink
we probably want to trash not delete
Browse files Browse the repository at this point in the history
  • Loading branch information
fredbradley committed Aug 9, 2024
1 parent 8e98221 commit 729c964
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ImportViaJson/RemovePerson.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function __invoke(WP_REST_Request $data): \WP_REST_Response
}

// 3. Delete the post
$delete = wp_delete_post($this->post->ID);
$delete = wp_trash_post($this->post->ID);

// 4. If we get a WP_Post object back, we have successfully deleted the post
if ($delete instanceof WP_Post) {
Expand Down

0 comments on commit 729c964

Please sign in to comment.