WP-Create temporary username and destroy it when user logs out-with PHP

So far I have a script that I can use to create a username, but I want to improve it so that the username is temporary and that gets deleted when the user is logged out or when the session expires (whichever happens first).

This is the script for creating the user https://gist.github.com/jawinn/8012327

I see there is another topic that mentions deleting the user but I want to delete just the temp user I create with the script and not every user.

Thanks

Read more here:: WP-Create temporary username and destroy it when user logs out-with PHP

Leave a Reply

Your email address will not be published. Required fields are marked *