Questions tagged [login]

Refers to the act of gaining access to a WordPress site, as well as the WordPress account itself.

Filter by
Sorted by
Tagged with
2
votes
1answer
658 views

How do I approach removing menu items on the fly based on settings in my plugin?

I've started writing a plugin that allows the administrator to select specific pages and set them to be visible only to logged-in users; the plugin optionally applies the restriction to all child ...
0
votes
0answers
9 views

User registration plugins that send data to external database? [closed]

I would like to set up a wordpress instance for my site, however, I would like to add a registration page that links to a postgresql database I already have. Are there any plugins that support adding ...
0
votes
0answers
17 views

Same userbase on multiple sites

Let's say I already have a site A with some registered users. Now I want to launch a new site B on a different server but I need login/register to work based on site A userbase. Also it would be great ...
0
votes
1answer
679 views

Custom Login Plugin Redirects to wp-login.php After Site Migration

I am using a custom login plugin I made for my site, it was working fine before migration but now it redirects to the wp-login.php page. Old Site -> http://prep.kevinmamaqi.com/ (still available ...
0
votes
1answer
433 views

autocomplete=“off” WordPress Login

I need to remove the auto complete password within the login page. I understand I need to set autocomplete="off". There is another article on this site (How to disable autocomplete on the wp-login.php ...
0
votes
0answers
14 views

Login using mobile phone number and skip email on registration [closed]

I need to implement user registration/log in using mobile phone number and name only and leave email optional. Maybe replace the username with the mobile number instead. Any class or plugin to deal ...
0
votes
1answer
19 views

Wordpress Admin Login Issue

Hi Guys, hoping you can help with an issue I am having logging into a WP site. This is the error message I get when trying to log in as Admin: Warning: Illegal string offset 'remember' in /homepages/...
6
votes
4answers
30k views

Redirect to referring page after logging in

I am not using any custom login plugins or any bespoke code. A few of my pages have got this bit of code in them at the very beginning. <?php if(!is_user_logged_in()) wp_redirect('/...
2
votes
1answer
602 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 ...
0
votes
1answer
920 views

AJAX login without a plugin does not work. when add a action to function.php

I am using wordpress ajax login without a plugin. I want to not be allowed users access to the WordPress profile after login, Because i have designed a specific profile in the link: http://www....
1
vote
1answer
2k views

Using google reCaptcha without a plugin

Wordpress noob here wondering how to include reCaptcha authentication in my login without a plugin? So far I have added the captcha div into the login using a hook: add_action('login_form','...
1
vote
1answer
24 views

When can I safely `wp_set_auth_cookie`?

I've built a small, but working code of logging in an user based on his ID: $user_to_login = get_user_by( 'id', 1 ); // Check if user exists if( $user_to_login ) { wp_set_auth_cookie( $...
0
votes
1answer
892 views

Wordpress auto login user after registration only from a specific page

I have have a custom join page that is called /join/ and the page id=484 and it uses a plugin for the registration function by simply placing a shortcode on the page very straight forward. I need to ...
1
vote
1answer
20 views

Today, without warning, all admin panel logins redirect to home page after login. non-admin users logins work well

(oursite.com)/wp-login.php?itsec-hb-token=(our token) all admin logins redirect to the home page (in a logged-in state). all admin users are affected. non-admin users login works well. no code ...
0
votes
1answer
23 views

Prevent display password on wp-login.php

In wp-login.php i want send password salted SHA256 on password. So i can avoid the security data exposed. see the screenshot where pwd is not encrypted so how can make made encryption so should not ...
0
votes
2answers
17 views

How can I insert wordpress login screen on a different domain?

I do have a php website running on a certain domain, and I have installed Wordpress on a subdomain. I need to put a login form on the homepage (not the subdomain) where the user will fill in the ...
0
votes
1answer
1k views

ERROR: Cookies are blocked due to unexpected output - ultimate solution

I know this problem can happen but I need ultimate solution. My main error is: ERROR: Cookies are blocked due to unexpected output. For help, please see this documentation or try the support ...
3
votes
4answers
10k views

wp-login.php redirecting to HTTPS

I recently restored a WP multi-site 3.0.1 database from production to a staging environment, and when I try to login, I am being redirected to an HTTPS URL. The browser complains that the certificate ...
0
votes
1answer
1k views

Can't access Wordpress admin panel/dashboard

I have been working on a site through WAMP with localhost. My site is not uploaded online yet. When I try to access my site from localhost/wordpress which is where I have been accessing it from for ...
0
votes
0answers
19 views

Disable Wp-Admin For Non Admins By Default, How?

On one of my website, new users (default: subscriber type) cannot access (shows an error) wp admin nor see wp admin bar as default without any plugin or functions.php. But on my other website, new ...
0
votes
1answer
31 views

Infinite loop when logging out using custom login form

I have a child theme that I'm using based on a parent theme I created. The parent theme uses the standard wp_login_form while this child theme uses a username only option (the site itself is local - ...
0
votes
0answers
28 views

How to trigger different behavior in iFrame

I have a website in our company network from which I integrate content to other sites in our network via iframe. The source page can only be accessed with Login via SSO. However, I want to see that on ...
1
vote
2answers
1k views

Redirect when accessing /login when logged in

I am using Theme My Login plugin to change the login page from "/wp-login.php" to "/login". My question is how do I redirect a user that has already logged in so that visiting "/login" instead takes ...
0
votes
2answers
465 views

How can I theme or style the lost password page without a plugin?

So I want to apply a theme and style the lost password page without the use of a plugin. I don't want it to show the default Wordpress lost password page. I managed to style the login form by ...
0
votes
2answers
1k views

wp_authenticate but not logged in

I am pretty new to all things Wordpress and seem to be really confused by what I have read. What I am doing is creating a plugin for a specific job and I need to simply change the menu once logged in....
0
votes
0answers
18 views

Cannot access wp-admin/wp-login.php (Wordpress backend) anymore, what could be wrong?

The problem I cannot access my Wordpress backend anymore. I cannot do this by going to www.sitename.com/wp-admin and not by going to www.sitename.com/wp-login.php. When I go to /wp-admin, it seems ...
2
votes
1answer
109 views

Admin user getting message 'You need a higher level of permission'

I’ve just created my new WordPress web site ( uttoxeter.com ) It worked well for a while but now if I try to modify / edit anything I get asked to log in again and when I do it says that I’ve ...
0
votes
2answers
30 views

Google reCaptcha on WP login page

Happy New Year! Just wondering if anyone knows how can we user Google reCaptcha on WP login page? Either v2 or v3
1
vote
1answer
156 views

Force Users to Login - loop problem

I'm using this code below as a plugin. It seems to work but sometimes it seems to be stuck in a loop. When I have this plugin running my facebook social sharing doesn't grab the correct page and ...
2
votes
2answers
1k views

Customizing the default logout page of WordPress

What are the proper filter/hooks to modify the wp-login.php?action=logout confirmation page When you logout of your site using yoursite.com/wp-login.php?action=logout , You will go to a standard page ...
0
votes
0answers
57 views

Wordpress new version Version 5.3.2, user login not working after upgrade

After upgrade to wordpress new version 5.3.2, user login from frontend is not happening. Admin login is working fine. User side, its login and redirected to profile page, but i think session value not ...
0
votes
1answer
452 views

wp-admin redirects to subdirectory after moving installation to subdirectory

I have moved a wordpress installation to a subdirectory, from var/www/html to var/www/html/wp-blog mainly to make it future proof. I have followed the instructions in the codex. My server is ...
3
votes
3answers
2k views

custom login page redirect to logged in user profile page

If I click on sign in then it should go to the login page. The issue is that when I put the link then it goes to redirect_to home page, but I want to go on user profile page instead. I don't want to ...
2
votes
2answers
2k views

Gaining Login Access via the Database

I have been given a job to amend a Wordpress site. I have only been given access to Cpanel. My questions are can i log in to the back end of Wordpress via Cpanel? If you can't login via Cpanel can i ...
0
votes
0answers
16 views

Menu not updating for logged in users after redirect

I'm having a problem with my menu not being updated for logged in users. My website has a homepage which I want to change depending if you're logged in or not. I've done this by adding the following ...
28
votes
3answers
26k views

What's the easiest way to stop WP from ever logging me out

After a certain amount of time WP logs out all users and forces them to log back in again. For development environments on my local machine this is obnoxious and absolutely unnecessary. Is there an ...
0
votes
1answer
899 views

How to login a user with wp_set_auth_cookie on a specific blog within a multisite environment

How can you leverage wp_set_auth_cookie to programmatically login a user on a specific blog in a multisite environment? wp_set_auth_cookie doesn't allow you to set the target blog to authenticate the ...
0
votes
2answers
2k views

how to refresh page after user logout with 'wp_logout_url'?

I have written a plugin for my own site where I have an issue like "after user login to the site if he logout then again if he clicks on browser back button then the previous page showing again ...
1
vote
1answer
1k views

How can I allow access to two user accounts using one login?

I have spent the last two hours searching for this and I cannot find a solution to my problem. I have a WP site with WooCommerce running which allows to users to create their own store. My client ...
0
votes
0answers
16 views

How the wordpress login and signup in react native app

Can anyone help me to login and sign up in reactnative app i have a Wordpress website and i want to link my wordpress site to reactnative app. search lots of solution but no one help me. i am using ...
1
vote
1answer
1k views

Automatically login user across multisite

When new site is created on my multisite installation, I automatically add the new user to the main site (because I need him to order the product): add_user_to_blog( 1, $user_id, 'customer' ); I'd ...
1
vote
2answers
30k views

Finding the login page from database?

long story short I was given the login information for an older gentleman who unfortunately passed away who managed a young lady's Wordpress website. Was asked to manage and update the site for the ...
0
votes
0answers
12 views

Login with Facebook via API

I am making an Android app that uses the WP V2 REST API. The main site allows for login with facebook to leave comments. I would like to extend this same ability to my Android App. Is it possible to ...
0
votes
1answer
839 views

login/logout for only one page

I have a site that is visible to the public except for one page. Therefore, I have turned off the admin bar completely and I'm not using any widgets or sidebar. The admin has to type the full URL to ...
0
votes
1answer
17 views

How to log into WordPress via GET/POST

I have an old WordPress site, which I have no FTP access or anything and in WP-Login.php I'm getting this message. But I remember my login credentials, mail and password. Is there anyway I could ...
0
votes
1answer
2k views

Login & Register & Custom details WITHOUT plugin

I'm building a website in wordpress, and I need to make a login page & register page / popup with ajax + account page with some custom fields that I need to put thier like adress, phone number, ...
1
vote
1answer
2k views

Display content based on a users login

I was wondering if this is possible. I created a client portal where they can see all of their work that was assigned to them (this is all being displayed on the frontend). Once they login, they are ...
1
vote
1answer
16 views

Login redirects and query strings

I have a number of sites that every so often become the subject of multiple IP address brute force attacks. I use the wonderful Limit Login Attempts which rebounds them but the logging is a pain in ...
1
vote
1answer
454 views

404 redirect wp-login and wp-admin after changing login url

I've successfully changed the login page to a custom url, using this codes: This one into wp-config.php define('WP_ADMIN_DIR', 'secret-folder'); define( 'ADMIN_COOKIE_PATH', SITECOOKIEPATH . ...
0
votes
3answers
44 views

Cant login to wp-admin

Since my wordpress-instalation updated itself, i cant get access to the wp-admin page. All i get is a blank page with Warning: Cannot modify header information - headers already sent by (output ...