Password Protect | WordPress.org

[ad_1]

Yes this is possible.

How you do it depends on what you mean ‘usewr is generated’.

By default all WP users can change theor own password.

By default all new users have a role, and the lowest role is subsciber and all they can do is adjust theor profile / passord.

By default all user when they login go to teh admin page, but that can be cahnged aby a couple of lines of code ( or possibly plugins will do it – depended on the detail of what you need )

Thanks Alan,

We would create the user using their email address and then automate the password.

I’d need to make sure that the site is only accessible if you have a username and a password – as there will be personal information collected (name DOB etc).. If I can add some code to take the user straight to the home page, that would be preferable.

Andy

So if you are OK with some bits of code

This is the basics – I havent tested it though ( and cant provide more )

https://gist.github.com/alanef/8f5b51b7777065f83e3092c247dc6794

Thanks Alan – appreciated

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer