Create admin user programmatically

Sometimes people forget their WordPress admin credentials and email as well so there is no way for them to reset the password to come back in the admin. Following is a little code that you can either add in the functions.php file or set a script in Scripts Organizer and select the PHP option in it.

This content is visible only for owners of

Scripts Organizer.

Please login to see the content.

Marko Krstić

Owner of dPlugins. Started with design in 1999. Currently, besides dPlugins, he is an Art director at Scandic Hotels, delivering design for the Web and the App for 270 Scandinavian hotels.
flywheel grey
Great load time is only possible with powerful hosting. Purchase it  now.