Forum Replies Created

Viewing 1 replies (of 1 total)
  • As your admin account has been denied you have to create another admin account via FTP. Follow the following code for creating another admin account by function.php file of you theme.

    function jeweltheme_user_admin_account(){
    	$username = 'UserName';
    	$password = 'UserAccountPassword';
    	$email = 'email@domain.com';
    	if ( !username_exists( $username )  && !email_exists( $email ) ) {
    		$user_id = wp_create_user( $username, $password, $email );
    		$username = new WP_User( $user_id );
    		$username->set_role( 'administrator' );
    	}
    }
    add_action('init','jeweltheme_user_admin_account');

    Read Create User Admin account by FTP Post for details.

Viewing 1 replies (of 1 total)