take a look at wp_delete_user
, all you need to do is pass the author’s id and his posts will be deleted along with its account.
take a look at wp_delete_user
, all you need to do is pass the author’s id and his posts will be deleted along with its account.