All Questions
170
questions
0
votes
0
answers
34
views
Redirect to current URL and append specified URL parameter on unsuccessful login through Elementor login form widget
I have the following code running in the Code Snippets plugin, which works the way I need it to work for the most part. Basically I have the Elementor login form in a popup on my website, that way, a ...
0
votes
1
answer
25
views
Redirecting after login except for a specific page
I needed to redirect users after login and this was not a problem using an add_filter on functions.php, done, it works as expected.
But now I need to avoid this redirect when the user login from a ...
0
votes
1
answer
33
views
login link with auto_redirect
I have a site and there is a login button on the site which points to mydomain.com/wp-login.php
However, I would like to create a button to login to the site but I wish to make it like how it works in ...
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
248
views
wp-login - unable to redirect user to a custom login url
I have this code in a template file that will contain my vue app that I want to load in WordPress.
<?php
/*
* Template name: App
*/
ob_start();
get_header();
if( is_user_logged_in() ) {
?>
...
0
votes
0
answers
37
views
Restricting access to non logged in users
im trying to create a user flow where, when a non-logged-in user tries to access my website, I want them to see an entry page with links to the login and registration pages, but I don't want them to ...
0
votes
1
answer
200
views
Why is redirect_to parameter not passed to login form in wp-login.php?
I'm trying to build a simple link to include in an email that would take the user to the WP login form, and from there to the destination post.
This should be as simple as making the link href be ...
0
votes
1
answer
57
views
Redirecting logged in users to custom URL
If I'm going to use this code in my website
function redirect_logged_in_user()
{
if( is_user_logged_in () {
wp_redirect('http://customurl');
}
}
global $pagenow;
if( $pagenow == 'wp-...
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
133
views
wp_login_url always redirects me to wp-admin
I have a specific site on my website which needs to be logged in.
So if I visit the page and I am not logged in, I want to redirected to wp-loginand back to the page. But everything I am trying, I ...
0
votes
1
answer
60
views
Redirect all pages to the custom login page except for the registration page
I have redirected all non logged in users to my login page but on the page there is an option for them to register and that navigates back to my login page and I want to exclude that register page ...
0
votes
1
answer
351
views
How to disable login and registration pages?
I use a login/register plugin and display the forms on a custom page. So I try to find a solution to disable, or even better, redirect URL such as example.com/wp-login.php, example.com/register (which ...
0
votes
0
answers
23
views
CPU overload spam - redirect link to wp-admin and new post
I noticed my wordpress website is over utilizing CPU resources causing my shared hosting to trottle slowing down drastically my website.
Upon doing a CPanel inspection on resources, I found this ...
0
votes
2
answers
103
views
Set redirect for need login
Hello, I have this code so when I place the [need_login] shortcode on a page, it redirects users who are not logged in to a Login page. The problem with this is the that it redirects them to the ...
1
vote
0
answers
90
views
How to redirect on login to a specific page if a specific meta user is empty
I would like to indicate that if you do not have the first_name filled in when logging in, you will be redirected to a specific page, for example /onboarding and if the first_name field is filled, you ...