DEV Community

loading...
Cover image for Add WordPress user using FTP

Add WordPress user using FTP

Yuvraj Khavad
Hi πŸ™, I'm Yuvraj, but you can call me Yuvi! I'm a web engineer πŸ‘¨β€πŸ’» and having a very deep interest in problem-solving and simplifying things.
・1 min read

Recently, one of our clients sent us a list of WordPress website changes with FTP detail but they don’t have a WordPress admin login details.

At that time below code helps us to add a WordPress administrator user. Just add this code on function.php of the active theme.

Just delete this code after login successfully.

Happy Coding !! Feel free to ask us any questions if have.

Discussion (2)

Collapse
ibonkonesa profile image
Ibon

Nice solution! Maybe I would tried to use a web shell and insert user directly to database, but this one is easier :)

Collapse
yuvrajkhavad profile image
Yuvraj Khavad Author

Yes, this is very easier. Thanks