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
0
votes
0answers
29 views

My wordpress site crashes when I login!

My wp site: https://mgraselbar.com/ runs very well as long as I browse it as a user.. but when I login it crashes.. all it's content git mixed. And when I logout it runs well again. I get this in ...
0
votes
0answers
30 views

Share User data and account login across subdomains

Lets say I have a domain: domain.com and 2 subdomains: sub1.domain.com and sub2.domain.com sub1.domain.com is a woocomerce site. and sub2.domain.com is a blog site. How do I manage all users for all ...
1
vote
1answer
86 views

Why is it that not all users have a 'session_tokens' meta_key record in the usermeta table?

I've created my own code based on this good article - https://shocksolution.com/2019/04/16/find-last-login-time-for-wordpress-users-in-the-sql-database/ to get the last login date for a user. I'm ...
0
votes
1answer
139 views

How to add custom authentication to wordpress login and register

I want to create a function that will halt the login process in wordpress and let a user to validate an otp form or code before he logins in fully. And i intend this interception to be just after the ...
3
votes
2answers
112 views

How to keep always logged in development environment

I have a little non-standard WP dev environment, I use one WP core for all my projects and switch each project in core's wp-config.php just changing the $project variable (e.g. proj1, proj2, example......
0
votes
0answers
21 views

End session screen not close automatically after login

I configured the login screen and the login process for my purposes. but there is an issue I don't know how to solve. after the session ends, there is a pop-up with a login screen called "wp-auth-...
28
votes
6answers
59k views

wp_enqueue_script was called incorrectly

I don't know how but now I am getting this error : Notice: wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, ...
17
votes
9answers
80k views

Login page ERROR: Cookies are blocked due to unexpected output

I have a WordPress website that I recently discovered had this error on the login page: ERROR: Cookies are blocked due to unexpected output. For help, please see this documentation or try the ...
1
vote
2answers
1k views

How to redirect login and register pages

I have a WordPress site which has the built-in login form with the url http://domain.com/wp-login.php and register page http://domain.com/wp-login.php?action=register I want to display these forms on ...
0
votes
0answers
61 views

Unable to login with email address as the username - WordPress

I just noticed that on my production site users are not able to login using their usernames (user_login field in wp_users) that are in an email format. So for example a username like john.doe works ...
2
votes
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 ...
21
votes
7answers
53k views

How can I redirect user after entering wrong password?

I'm using wp_login_form() to display login form in a jQuery dialog window. If user enters wrong password, the user is taken to the backend. I don't want that. Is there a way to notify user that he ...
0
votes
0answers
10 views

Facebook Open Graph Attributes for Wordpress Contents that requires Log in

I have a membership Wordpress website. All the post requires log in from users before they get to read it. If the user access the post without login, a 302 Redirect will be activated and will bring ...
0
votes
2answers
54 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 ...
1
vote
0answers
9 views

How can I get my Script to work on the Login page?

I am trying to disable the right click feature, on the login page, using the following code: <?php function disable_right_click() { ?> <script> jQuery(document).ready(function(){ ...
0
votes
0answers
18 views

How to apply jQuery code to login page?

I'm just trying to apply some jQuery code to the login page of my website, but none of the hooks I've tried work. All the hooks I've tried: //add_action('login_enqueue_scripts', 'my_custom_scripts'); ...
0
votes
0answers
25 views

Login Redirect Based on Action Parameter in Login URL

I'm trying to redirect logged in users to a specific page based on what is in the login url. For instance, I have added an action parameter to the login url like this: https://mywebsite.com/wp-login....
0
votes
1answer
44 views

How to Prevent Brute Force Attack on WordPress

my site went down for 1hr. and after then continuously. So I asked my hosting what the problem is with my website. they say I am in under brute force attack. told me to hire someone. I Limit Login ...
0
votes
1answer
27 views

Moving from a non Wordpress site to a Wordpress Site - Login between both sites

I have been using a site for the past few years which I wrote myself in PHP. The site was to create events for people to join and take part in, with different features in them for different events. ...
0
votes
0answers
17 views

change login url and redirect users to current page

If a user wants to submit a comment it redirects user to wp-login-url instead of my woocommerce shop login page. I found my first part answer in this question Change “logged in” link in (you must be ...
0
votes
2answers
283 views

How can I change the email that is inside the default email texts of wordpress?

Wordpress sends some various default email texts to the users. For example when the password reset email has been sent, then the user gets an automatic email like this: Hello user, This notification ...
7
votes
5answers
9k views

WordPress auto login after registration not working

I looked up a bunch of threads trying to figure out how to automatically log a user in after registration, and came up with this. function automatically_log_me_in( $user_id ) { $user = ...
0
votes
2answers
36 views

Can't login to my own website

I've had a WordPress site since March 2016 but a few years ago I lost the ability to log into my own website. I'm using the twentysixteen theme so there's a little panel at the bottom of the screen ...
0
votes
1answer
379 views

Multisite: Redirect Subsite Administrator to Subsite Home Page, Bypassing Dashboard

The subsite administrators of my multisite installation want to go directly to the subsite home page upon login, bypassing the dashboard. Irrespective of the wisdom of this, it's what they clearly ...
0
votes
1answer
102 views

Hiding the Wordpress login and password fields from login page

I am using social plugin and I want to use just that and hide the login and password fields from login page, how do I do that? I have tried this code but it disables complete login area including &...
0
votes
1answer
41 views

Enqueue script globally

This only works for admin dashboard. add_action('admin_enqueue_scripts',array($this, 'login_register96_adminscripts')); And this only works for the user place. add_action( 'wp_enqueue_scripts', array(...
0
votes
0answers
49 views

404 error in wp-login.php, localhost ubuntu

i have xampp installed on my ubuntu operating system and install wordpress, it works fine except it gives me a problem entering wp-login.php. it shows me the following error: Error 404 localhost ...
1
vote
1answer
48 views

How to fix blocked cookies error that doesn't let me log into wp-admin?

I have edited functions.php file recently and also added a new folder to themes folder for custom endpoint and after that I wasn't able to login to wp-admin. I deleted the folder and code line from ...
0
votes
0answers
10 views

How to use the woocommerce plugin's login page rather than the theme's original login page?

i am going to use a theme which has its own member login page already. I would like to add woocommerce plugin into this theme. Put what is hesitating me is, how do i integrate the woocommerce login ...
0
votes
1answer
45 views

Exclude login page from custom maintenance code

I have a custom code to get into maintenance mode which excludes from it anyone who is logged in or is in the login page, with this if statement: if ( !is_user_logged_in() && !...
0
votes
1answer
41 views

WordPress on localhost (LAMP) - Can't login, just redirects to wp-login.php

I setup a LAMP server on my new laptop and downloaded a website from the live server to my local machine. Everything appears to be working, but I can't login, when I go to http://localhost/mysite/wp-...
0
votes
1answer
18 views

How can I add a new row in a separate database when someone registers via Wordpress?

Apologies if this is question is too general or in the wrong location but I am new to SQL, Wordpress and web hosting. So I am a game developer using Unity C# to create a multiplayer game. I am using ...
17
votes
4answers
72k views

Add “Logout” link to navigation menu

How can I add a link to the primary navigation menu with the class="right" attribute? I tried to add a static link to example.com/wp-logout.php?action=logout but that leads to a logout confirmation ...
0
votes
1answer
22 views

Which membership plugin for a simple sign in? Personal areas for customers

Most of the membership plugins I have found seemingly operate on the logic of the website having paying subscribers. I am not looking to make a publishing/blogging website with restricted access to ...
0
votes
0answers
14 views

Custom registration edit field / value before registration submit

i need to : add a hook that updates after user username and password creation by setting them both as the variable telephone number, i try this (but not working): // sets username and password ...
1
vote
1answer
40 views

Different homepage for logged in users

Hi I would love to show different content for logged in users and I don't want to use a redirect, I came up with this idea and it worked well but I am not sure if it is the right way //Home.php file ...
0
votes
2answers
3k views

Can't login through wp-login.php on fresh installation

I have currently installed a fresh Wordpress on a dedicated server. It's the latest version with no plugins at all. Everything went successfully as always, I can see the website, but when I try to ...
0
votes
1answer
36 views

Having trouble creating two shortcodes, one for logged in user and one for visitors

So I'm trying to create a code (in functions.php) that displays a widget content, from shortcode, based on whether the user is logged in or logged out (visitor). I am successful in displaying content ...
0
votes
1answer
54 views

Switch between Wordpress websites easy for an end user

On of our clients has several Wordpress websites (not a multisite). Is there a way/plugin that can make it easy for them to switch between these sites without having to login all the time? They should ...
0
votes
0answers
15 views

How to connect wordpress user with my own APP user?

I want to add my woocommerce store into my APP. (The APP and website in the different servers.) How can I connect the users' data? Sync the users statue? Like when I login on APP, I was also login in ...
0
votes
0answers
37 views

Call WP Rest-Api to GET /users/me returned NOTHING in console

I am trying to get the login details of my wordpress account via WP Rest-Api with Cookies Auth in the logged-in wordpress condition. However, when I run it through a web browser I do not get anything ...
1
vote
2answers
28 views

Website looks fine, but login to wp-admin yields a blank screen

I'm starting work on a client website and if you go to the site itself, everything looks fine. http://www.donoliverhomeimprovement.com However, when I try to log into the wp-admin, I get a completely ...
0
votes
0answers
13 views

Cookies Error on the wp-login.php version 5.4

I have this message: https://prnt.sc/t7lvkk on my login php, I have enabled cookies on my browser, I used also define(‘COOKIE_DOMAIN’, $_SERVER[‘HTTP_HOST’] ); code on wp-config.php No Solutions I ...
0
votes
0answers
24 views

Sign up and Login ONLY using social account

I'm finding a way to let passangers sign up or login, only using google or facbook account, without showing up the default "signup by email". Is there any way to do this? My reason is, I ...
0
votes
1answer
51 views

Problem in auto login after registration

I created a registration form myself and now I need to auto login after registration but I see the following error that belongs to a plugin. I know I should not speak about plugin here But my question ...
0
votes
0answers
29 views

Make Wordpress User Name be the Company Name when Registering (not the default 'first name' last name' email address')

Is it possible to make WordPress User Name the Company Name instead when user registers on a site. So the Company Name Field on the form is used as the key field upon registration? (Not first name, ...
2
votes
2answers
8k views

How to turn off redirection from 'domain.com/login' to 'domain.com/wp-login.php'

I want to install something different than wordpress under 'mydomain.com/login', but WordPress automatically redirecting this link '/login' to '/wp-login.php'. Where can I turn off this redirection?
1
vote
1answer
40 views

Programmatic Login from 3rd Party site

I'm trying to do a sort of SSO/programmatic login solution for our wordpress site from our separate web application. I don't have a lot of experience with wordpress so I assume there's something I'm ...
1
vote
1answer
44 views

Chrome 83 doesn't connect WP login page after update from http to https on localhost

I enabled the flag "allow-insecure-localhost" on Chrome 83 to accept my localhost WP site to cure the ERR_SSL_PROTOCOL_ERROR. But the Chrome warning page show again and cannot connect to the WP_login ...
0
votes
1answer
122 views

Redirect Logged In User if page is wp-login.php and $_Get['level'] = X

I have read various post about redirecting a logged in user if the go to /wp-login.php. However, my case is a little different. I want my users to click a link that takes them to "/wp-login.php?...

1 2 3
4
5
30