How to give the role to the guest WordPress?

Good day, tell me. How can I give a role to the guest or all users role? Without changing the role that they have. Could not find information on the Internet about what kind of role from unauthorized user.
March 19th 20 at 08:36
2 answers
March 19th 20 at 08:38
The role can be given only Selaginella user.
In other cases, just done a test -logged in user or not.
thanks for the reply. probably will have to do so: check logged in or not. If so, add the role. If not, create the user (гость12345, password and a random mail12345@test.ru - Elizabeth_Morissette commented on March 19th 20 at 08:41
@Elizabeth_Morissette, you want to create user without his participation? How? - Alverta.Stamm commented on March 19th 20 at 08:44
March 19th 20 at 08:40
How to give the role to the guest WordPress?
Could not find information on the Internet

And do not find the information... Because it is not entirely correct. It would be good to write a goal you want to achieve and we'll tell you more ability to adjust way.

You want for each unique user to create an account. Suppose that every day you have 1K uniques. In a month - 31K users... It will still need to clean the DB... the Role is not assigned to the guest. And about visits of bots and creating accounts for them, I generally keep quiet)))

Find more questions by tags WordPress