Skip to main content

All Questions

Tagged with
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 ...
Irina Niko's user avatar
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 ...
RestAPPDev's user avatar
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 ...
Michael's user avatar
  • 11
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" ...
Xavi Montero's user avatar
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
user214173's user avatar
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 ...
arielsfr's user avatar
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) $...
Nigel Rodgers's user avatar
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 ...
A.Karwowski's user avatar
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 ...
Nadine M.'s user avatar
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 ...
Honoluluman's user avatar
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 ...
Michael R. Burke's user avatar
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 ...
iDev's user avatar
  • 3
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 ...
Sh.Dehnavi's user avatar
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.
Klevis Miho's user avatar
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 "...
Nirmal Mulji's user avatar

15 30 50 per page