Check the article to add an admin user in wordpress using functions.php file. Check here to edit the functions.php file with FTP and cPanel.
If you forget your admin password and not able to log in as an admin then you need to create a new admin user through functions.php file















