Lost password – tried to edit functions.php to reset and now I can't access
-
website is family-friendlyescapes.com
I lost the family-friendlyescapes.com/wp-login.php password and I cant retrieve view the email option.
I tried to edit the functions.php file as per many codex recommendations such as https://codex.www.ads-software.com/Resetting_Your_Password#Through_FTP
by adding this code to the functions.php file.wp_set_password(‘password’,1);
when I try to access family-friendlyescapes.com/wp-login.php i receive the following error:
Fatal error: Call to undefined function wp_set_password() in /home/content/02/10435102/html/wp-includes/functions.php on line 2
my functions.php file looks like this with the remaining lines un touched:
<?php
wp_set_password(‘admin’,1);/**
* Main WordPress API
*
* @package WordPress
*/require( ABSPATH . WPINC . ‘/option.php’ );
I can’t see what I am doing wrong and really need to get access to my site as its for my wife and her new start up.
Any help greatly appreciated.
- The topic ‘Lost password – tried to edit functions.php to reset and now I can't access’ is closed to new replies.