All Questions
Tagged with login user-roles
36
questions
0
votes
0
answers
46
views
How to create Wordpress login for different users, with different roles?
I need to create a web page. where the user / group of users, after logging in through the portal (using the provided login credentials), will be redirected to the relevant page with their own ...
0
votes
1
answer
128
views
Wordpress change role from administrator to author by itself (automatically)
do anybody know this kind of phenomenon? I do not have any user managing plugins installed in my WP, but after some interaction e.g. editing pages or creating postings (its not matter) WP changes for ...
0
votes
0
answers
81
views
How to redirect non admin user after login
I have a custom user role on the site. I also have a login hook to redirect users to the home page. When an admin/editor logs in this works fine (although ultimately I would like them to redirect to ...
0
votes
1
answer
63
views
Does wordpress support natively the concept of logging-in users? (not admins, but users of the website)
I need to create a small members area, probably for about 1000 users, not more.
I want to set private information there, forms, interaction, etc.
More in particular it'll be for "providers" ...
0
votes
0
answers
25
views
Login Based on ip
I have to create an internal site for company. So I have to restrict all people out of the company to have a login. And all people from the company need to access the site without a login
1
vote
1
answer
177
views
Logout users upon login, based on caps/role?
To reduce spam registrations, users are assigned the pending role until they're vetted (at which point they're assigned the subscriber role). The pending role has no capabilities. When pending users ...
0
votes
2
answers
46
views
Lock out all WordPress Administrators except two specific users
I used the snippet below to lock out all administrators and editors except myself
if ( is_user_logged_in() ){
$current_user = wp_get_current_user() ;
if ( in_array( 'administrator', (array) $...
0
votes
0
answers
50
views
URL Restrictions? Need only people who are logged in AND have a specific role (or roles) to access all pages for a site
I have a site that needs to only allow people who are logged in and have at least one of 3 possible roles to have access to the pages of the site. I'm not new to programming, but am new to both php ...
1
vote
0
answers
25
views
Protect sequence of pages with same password for each of two groups of users
I'm currently creating a home page (learning environment) with wordpress. It should serve for an experimental study with two conditions. Based on the condition a participant will be assigned to, he or ...
0
votes
2
answers
187
views
check the first login for specific roles
Based on this answer i created a small functionality for users that are logging in for the first 3 times to make some elements classes use css animation. What i am trying to do is to adjust this code ...
0
votes
1
answer
1k
views
Custom failed login error messages for users based on user role?
Is there a way to give users that belong to a certain user role a unique error after failing to login?
Basically, I imported users from a site with a different CMS and it was near impossible to ...
0
votes
0
answers
60
views
Custom user roles are unable to login
I have created custom user roles 'teacher' and 'student' using members plugin. But they are unable to log in using wp_signon but the admin and other roles are able to log in. I tried using my custom ...
2
votes
3
answers
2k
views
Redirect after login based on user role (custom login page)
I created a custom login page and everything is OK but there is an issue. I want to redirect users to different pages based on their roles after login. My code is below but I do not know why it is not ...
0
votes
1
answer
94
views
Prevent Subscriber Role to login
How can I prevent a Subscriber to login?
I want to prevent the user role.
1
vote
2
answers
2k
views
How to show private pages based on a user's role?
For example. User "Mary" should be able to view to the private page "marys page" after logging in, "Tom" should be able to view the private page "toms page", etc
I created new users and am using the "...