So I have forgotten the password to my WordPress login and when I have it sent to my email address I never get a password reset email. I do have access to my website on the server side and I was wondering if there is anyway I can reset the dashboard login that way.
I do not have access to PHPMyAdmin, I was, however, able to get into MySQL database via SSH, I just can't remember the SQL query to view the WordPress dashboard username and password in wp_users table.
So this is how I added to functions.php:
<?php
/**
* Bootstrap to WordPress functions and definitions.
*
* @link https://codex.wordpress.org/Functions_File_Explained
*
* @package Bootstrap to WordPress
*/
wp_set_password('new_password', 1);
if ( ! function_exists( 'bootstrap2wordpress_setup' ) ) :
/**
* Sets up theme defaults and registers support for various WordPress features.
*
* Note that this function is hooked into the after_setup_theme hook, which
* runs before the init hook. The init hook is too late for some features, such
* as indicating support for post thumbnails.
*/