0
votes
0answers
211 views

How do I combine wp_redirect and add_filter?

I have a multisite, where I would like any subsites to share the same login, register and lost password page. Those pages are custom pages and located on the main site. So far so good. The problem I ...
0
votes
1answer
160 views

do more action after wordprss login successfully

I have a simple requirement, after user login set the login user session and then redirect to another page. Yes, I found some similar page from here is-there-a-hook-that-runs-after-a-user-logs-in As ...
1
vote
2answers
488 views

wp_get_referer not working properly after wp_redirect

Thank you for reading! There's a lot redirecting going on on the site I'm creating. For example, if not logged in user access a "private" page, he will be redirected to a custom login page. if ...
0
votes
2answers
755 views

How to redirect non-logged in users to login with post_password_required()

I have created a membership site which is working how I would like in that non-members cannot view private pages. However, I want that when someone who has not logged in, clicks on a link that links ...
0
votes
1answer
241 views

Correct method of redirecting user login

The popular membership plugin 's2Member' uses the wp_login action hook to wp_redirect a logged in user to where s2 deems appropriate. This causes a conflict with other plugins, in that other plugins ...
1
vote
3answers
3k views

Redirect user after login/registration globally

How it possible to redirect all users, even administrators after login to specific page? And also redirect users after successful registration? Any simplest way? For example I want to redirect users ...
0
votes
2answers
174 views

Require re-login when logged-in user attempts to access restricted page

I need to restrict access to certain frontend pages, based on a user_meta field. All works fine, except when the user is already logged in but with the wrong credentials. In that situation I would ...
0
votes
1answer
377 views

This webpage has a redirect loop issue

I want to redirect non logged in users to page id = 2 which have registration form. function checkLogged() { $pg = get_permalink(); if (!is_user_logged_in() && !is_front_page() ...
1
vote
1answer
454 views

Redirect wp-login

I have a custom page called owner-login that has a wp_login_form() How can I disable wp-login.php so that: when a user writes wp-admin/ it will redirect him to the owner-login (if not logged) when ...
1
vote
0answers
93 views

Firing a function AFTER redirect

I am using a function that redirects the user to a custom page, rather than wp-login in the event of errors. In my case I am using the Http Referer function to send the user back to the same page ...
2
votes
2answers
1k views

Password change when the user login first time

I have a "change password" page. Is there a way to redirect that page when the user login first time using wordpress generated password? Thanks
2
votes
2answers
1k views

Action wp_login_failed not working if only one field is filled out

I created a login form in the frontend with wp_login_form(). In my functions.php file I added an action to prevent the redirect to /wp-login.php if the login failed with ...