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
1answer
13 views

On Homepage “is_user_logged_in()” function is not working after login and it is working after refresh the page?

I'm trying to add the menu items using filter. Below is the full function function new_nav_menu_items($items) { $loginLink = '<li id="menu-item-login" class="menu-item menu-...
0
votes
0answers
19 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
9 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
12 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
0answers
16 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-...
0
votes
1answer
37 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 ...
2
votes
2answers
85 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
31 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 ...
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 ...
1
vote
0answers
7 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
2answers
30 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 ...
0
votes
0answers
14 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
12 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
32 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
17 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
15 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
52 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 ...
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
27 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
28 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 ...
0
votes
1answer
32 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
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 ...
1
vote
1answer
24 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
1answer
16 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 ...
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
1answer
18 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
0answers
12 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
26 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
1answer
21 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
20 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
10 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
19 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
24 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
11 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
23 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
17 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
14 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, ...
1
vote
1answer
28 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 ...
1
vote
1answer
20 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 ...
0
votes
0answers
26 views

Discern a specific plugin's action hooks

I'm new to Wordpress plugin development (but not to coding) so please excuse the question. I am trying to develop a plugin to catch user registrations and populate other web application databases ...
0
votes
0answers
14 views

How to change default username field after login

if i go back to login page after logging in the username is shown in the username/email field(like the image bellow) how can i set it to empty or the user email?
0
votes
1answer
63 views

Secondary Menu and Logged In Users

I'm using the below code to display two different menus in my storefront based child theme based on a users logged in status. But When I have a secondary menu (links by the search bar) it is replaced ...
0
votes
1answer
13 views

Why do I have a reauth=1 redirection loop when I try to log in to WordPress hosted on AWS Fargate?

I have set up an AWS Fargate cluster with ten WordPress containers behind an AWS Application Load Balancer (ALB). I tested that my settings work when I have one container. Why can I not log in when I ...
0
votes
1answer
30 views

Determine user destination on wp-login.php

I am adding functionality to require users to login to view a website by hooking into the template_redirect action and sending non-authenticated users to wp-login. This is all working fine. I would ...
1
vote
2answers
39 views

Cannot access wp-admin after disabling all plugin

I cannot access my admin page after disabled all of my plugins via wp-admin/plugins.php. Initially, I was trying to activate Multisite. Now, despite logged in into my admin acount, the wp-admin only ...
1
vote
1answer
20 views

Redirect user to login before viewing custom post

I have a site with a listings page (https://gymkoi.com/class-listings/) and all I'm trying to do is redirect a user who is not logged in to my login page (https://gymkoi.com/login/) before they can ...
2
votes
0answers
36 views

How to redirect user to specific page based on the input password

I would like to ask if anyone has a ready solution for WP or recommend a plugin for password-based pages, namely: I create: a) subpage 1 and a password for it, e.g. 1234 b) subpage 2 and a password ...
0
votes
1answer
16 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
vote
0answers
17 views

Correct passwords keep appearing as incorrect

I don't know why passwords are not working... Every time a user registers on my website, their accounts are verified easily but the same passwords they use to register appear as incorrect. I have ...
0
votes
1answer
30 views

How to change Login default blue admin color?

How can I change default blue admin color for selected button or checkmark in Wordpress standard login page with CSS? This is the default blue color I mean, used for selected button border and ...

1
2 3 4 5
29