Register new user in WordPress from functions.php is required generally if we don’t have access to admin. Only ftp we have.
We can create user from fucntions.php easily by simply adding this code in functions.php
Just change username, password and email as per your need and all done.