How to create Administrator account using WordPress backdoor

Prem Tiwari - - WordPress Security, WordPress Snippets


If you want to create a WordPress administrator account in your WordPress site using the WordPress backdoor code, then keep your attention in this tutorial as I am going to share how to create administrator account using WordPress backdoor.

Note:  I have explained this tutorial for educational and learning purposes ONLY. In fact we DO NOT recommend anyone to use such a backdoor in his or her WordPress installation for own or your client site.

wordpress backdoor

WordPress Backdoor Code

Below is an example of WordPress backdoor. This is a simple PHP function that can be added to the WordPress theme’s functions.php file or you can create a separate PHP file and put it inside your WordPress theme or WordPress plugin folder.


About: Prem Tiwari

Prem Tiwari is the founder of FreeWebMentor.com and also a professional developer who has vast experience in PHP and open source technologies. Apart from this, he is a blogger by hobby and also he has been a regular speaker of WordPress sessions in various IT Companies.