Recently, one of our client 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.