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
2answers
20 views

Is there a way to call via javascript if a user is logged-in on a static html file?

I am using Wordpress/Woocommerce for my website along with jekyll (static html generator). I want to change a button based upon user logged in or logged out. \\ if user is logged in <button>Log ...
0
votes
1answer
12 views

WP-admin or any other is redirecting me to (This page doesn't seem to exist.)

I am logging in to my website with URL/wp-admin or other methods but it is redirecting me to ( This page doesn't seem to exist. ) here. Please guide me on how to do I log in to my website. See the ...
0
votes
0answers
12 views

Looking for a Magic Login Link plugin? [closed]

As the title suggests, I am looking for a plugin that overrides the normal WordPress login form. Hopefully, the login process would flow like this: User wants to login. User enters the email ...
0
votes
1answer
16 views

Hide a Post everywhere except on redirect

I have many user contactmethods on my Profile page. If the user has not completed them all, then every time they log in they are supposed to be redirected to a "Reminder" post. But I want ...
0
votes
0answers
32 views
+50

What are the best practices to achieve cross-domain interoperability and transparency in aggregate data through a uniform, hashed user naming schema?

The following plugin was just presented at the special session on data provenance to amend NSA's hard problems during the Hot Topics on Science of Security (HoTSoS) symposium. I'm looking for peer ...
0
votes
0answers
26 views

How to display logged user name in one WordPress website based on another React website login [closed]

I have two sites, one is developed in react.js and another is in wordpress. My need is that, when a user logged into my react site and then takes my wordpress site , I need to show the react logged in ...
0
votes
1answer
12 views

WordPress login doesn't work when using preview domain

We've recently moved providers for our WordPress website and can preview the website using hosts.cx or editing our hosts file to point at the new server IP address before we change the A records for ...
0
votes
0answers
22 views

how to authenticate email and phone number separately in ajax login form?

I'm writing my own login and register plugin and I'm using Ajax in this plugin...so I want to set an option for site admin if he/she wants to enable login with phone number(I've already write phone ...
0
votes
2answers
64 views

PHP warning - Use of undefined constant ‘FORCE_SSL_LOGIN’ ‘FORCE_SSL_ADMIN’ on wp-config.php

I have a bothering PHP warning for ages, and I am wondering if someone has solution to this. The following two-line warning is constantly recording in my error_log file: PHP Warning: Use of undefined ...
1
vote
1answer
24 views

wp-login gives 404 error, but wp-admin is working fine

/wp-admin it is working, but if I type /wp-login gives 404 error, any ideas why this is happening? Thank you.
1
vote
0answers
26 views

Conditional Login Redirect

I'm currently using the following code snippet to redirect admins to the admin dashboard and normal users to a specific site upon logging in. function my_login_redirect( $redirect_to, $request, $...
1
vote
1answer
23 views

Logout users upon login, based on caps/role?

To reduce spam registrations, users are assigned the pending role until they're vetted (at which point they're assigned the subscriber role). The pending role has no capabilities. When pending users ...
0
votes
0answers
20 views

Thank You Page Layout Differs on User Logged In Status

I have downloadable products on my site. In WordPress after placing a order for some reason when I am logged in the layout appears like this and when I am not the download button and billing address ...
0
votes
1answer
28 views

How do you implement a login feature on a Wordpress site?

How do you implement a login feature on a Wordpress site? I am wondering if Wordpress natively supports a login feature for the webpage itself. I am not talking about implementing a login page for the ...
0
votes
0answers
17 views

Remember page before login page, redirect to that page after social login

I used the following code. It works but not work on woocommerce social login. Therefore, is there anyone can help me for woocommerce social login. // start global session for saving the referer url ...
0
votes
1answer
29 views

i want to show a modal when user lands on home page very first time

what i want is when user lands on home page for very 1st time i want to show a specific modal. i managed to record the first login of user but what i cant get is how to track user first time landing ...
0
votes
1answer
20 views

Woocommerce Login Redirect to old domain

I move webpage to new domain. change in phpmyadmin _option _> new domain Everything is good but when I click in my account page (woocommerce) link go to old page. How to change this link to stay ...
0
votes
0answers
13 views

Error message when I'm on the login page with wordpress: cookies blocked [duplicate]

When I'm on the Login page in production, I've the cookies blocked error. Screencapture: https://www.pythonthree.com/wp-content/uploads/2020/11/cookies-are-blocked-due-to-unexpected-output-...
0
votes
1answer
23 views

Why can I log into wp-login.php and not wp-admin.php?

I have recently changed the config.php file in Wordpress in my FTP because the URL was wrong ( I did it with define('WP_SITEURL', 'http://www.myyyysite.com'); define('WP_HOME', 'http://www.myyyysite....
0
votes
0answers
17 views

Restricting wordpress login sessions for a web app

I am creating a webgl unity app that sits on a wp site and uses the wp accounts to store data. It works really well, however an issue I have is that currently a user can be logged in on two machines ...
0
votes
2answers
26 views

Lock out all WordPress Administrators except two specific users

I used the snippet below to lock out all administrators and editors except myself if ( is_user_logged_in() ){ $current_user = wp_get_current_user() ; if ( in_array( 'administrator', (array) $...
0
votes
1answer
15 views

animate.style on wp-login.php

I am relatively new to WordPress code and would like to enhance my login page with https://animate.style/ or other jQuery code. Do you think there are any security concerns in doing this? Thanks for ...
1
vote
0answers
53 views

Error thrown. Cannot create references to/from string offsets

I'm trying to access the /wp-admin on my old blog post, but when I try to get to the login page I'm getting an alert that reads as follows: "Error thrown. Cannot create references to/from string ...
0
votes
1answer
46 views

Keep user session with custom implementation of user login

To implement custom user login functionality outside of the wp-admin area, wp_signon() function is the way to go. This function accepts an array which may contain the "remember" key with a ...
1
vote
0answers
27 views

wp-login behind nginx reverse-proxy inaccessible — bad redirect?

i’ve setup WordPress on a local nginx backend instance. the backend url is https://wp.example.com:12345/ it’s served through a frontend, nginx reverse proxy, exposed at a subdir. the frontend url is ...
0
votes
0answers
28 views

How to replace ACTION url from original wordpress login form?

I need to replace the action of original wp-login login form: Instead of <form name="loginform" id="loginform" action="<?php echo esc_url( site_url( 'wp-login.php', '...
0
votes
0answers
18 views

Allowing duplicating users with same user_login and user_email

I would need a solution that the system would accept duplicates on user_login. I found a plugin for user_email duplicates, but I also need for user_login. Any idea is welcome, Thanks :)
0
votes
1answer
17 views

Input sanitation

I have a question regarding a wordpress site I have recently developed for a client. I have only until now developed a site for small clients that just require personal websites, however this client ...
0
votes
0answers
34 views

jQuery.post returns 0

I'm currently working on a WordPress login popup, which is created as a plugin. I am relatively new to jQuery and AJAX in particular. I have a small issue with the return value always being 0, though ...
0
votes
0answers
26 views

How to redirect a unique link based on login status

I have webstore on woocommerce, and on one of my wordpress pages (that page is not woocommerce page, but just wordpress and it is edited by Colibri free theme) I have download links for some products. ...
0
votes
0answers
8 views

Comments : Having the choice to login or not

So you have these two options in the Admin/Settings/Discussion : The problem: the second checkbox takes over the first one. How can can i leave the choice to either login -or- fill in name/email ? ...
0
votes
0answers
5 views

Keep the old referrer after failed login

I have the following problem that I couldn't find any solution for. I have a simple custom login page, which I've managed to set up, so it redirects to the referred URL the user came from. The problem ...
1
vote
0answers
23 views

What would be the best way to implement Magic Link logins in WordPress?

On the internet I saw several plugins/services offering a kind of a 'magic login' link functionality. This allows users to sign in without a password but with a magic link. That made me wondering: If ...
0
votes
0answers
19 views

Using REST API for custom users registration / login and user profile displaying and search

I'm reading about REST API of wordpress and I want to use it to login and register users. I need to set the user role based on the user choiche and add some information before the registration is done....
1
vote
0answers
39 views

How to save generated JWT token to cookies on login?

I'm developing a Chrome extension and I want my users to authenticate via my WP login page. I configured JWT Authentication for WP Rest API. I want the users to go to my website, login, and then have ...
1
vote
0answers
26 views

v5.6.2 User cannot stay logged in - wordpress_test cookie placed but not auth cookies

Running WordPress v5.6.2 with a simple Members Only function checking is_user_logged_in() and running auth_redirect() - which has worked fine up to now. Pushed upgrade to 5.6.2 and now any browser ...
0
votes
1answer
36 views

How is it possible to current user info on page in WordPress?

I am new at WordPress. I have need to display current user info on page: avatar, name, lastname, login... I have spent several hour on web, but could not find clean solution: How is it possible to do ...
0
votes
2answers
56 views

How to block specific user id in custom login form?

I've been looking for this method for weeks, but still can't find it. There are so many sites that discuss how to create a custom login page, but they don't cover how to block a specific id like the ...
1
vote
2answers
83 views

How can we redirect user from login page to home page if user is logged in WordPress?

I have just installed WordPress locally in my computer and run the website successfully. I want to achieve following: when logged-in user tries to access wp-login.php or register page, it should be ...
0
votes
1answer
34 views

Can't access WordPress as an admin - but I can log in as a user!

Hi I have the following issue: I am the admin of a WordPress/WooCommerce shop that has been around for a while. As of today, when I try to log into Word Press as admin I either don't get access to the ...
0
votes
0answers
19 views

URL Restrictions? Need only people who are logged in AND have a specific role (or roles) to access all pages for a site

I have a site that needs to only allow people who are logged in and have at least one of 3 possible roles to have access to the pages of the site. I'm not new to programming, but am new to both php ...
0
votes
0answers
18 views

Anonymous users can not access website

I have inherited a WordPress shopping website with WooCommerce. Prior to me, retailers used the website to place orders for the items to be sold in their shops. As a result, a forced login was ...
0
votes
1answer
18 views

MAMP localhost wordpress site, not possible to sign in, username and password are correct

I have two sites on my localhost server. The other one has a problem when trying to sign in. The username and password are correct, I can access the PHP my admin and check them from there, so I know ...
0
votes
2answers
101 views

Log out without confirmation request (nonce)

I have a Wordpress site with WooCommerce. I would like to add a Logout option to the Menu that logs out the user without asking for confirmation. So I included a menu custom link with as URL: /my-...
0
votes
0answers
27 views

Wordpress/Woocommerce multisite prevent crosssite login

I want to prevent that users can login the different subsites. for example: user1 can login site1 but not site2 I found out that this is possible when using the wordpres login, but when user1 uses ...
0
votes
0answers
12 views

Trouble when I try to connect to WordPress

I have 1 domain and 1 subdomain. Both have a different wordpress install on it. Once every month, cookies expire and people have to login again. Sometimes, when I and the users try to login, nothing ...
0
votes
0answers
31 views

error when using reCaptcha v2 in wordpress custom login form!

I have been successful to create a custom login form by ajax and reCaptcha v2. every thing is OK but when the user enter incorrect username or password and submit the form, then enter the correct ...
0
votes
1answer
21 views

Help! ERROR: Cookies are blocked due to unexpected output on attempting to login to resolve an issue with my site

First-timer over here! Domain for the buggered website (you'll see what I mean!) http://www.clarkephotographic.co.uk/ URL I am using to try to login to WordPress backend to fix the issue http://www....
0
votes
0answers
17 views

Embed username in wp-login field

I want to automatically display the username in the username field with a url parameter. Something like : https://mywebsite.com/wp-login.php?action=login&log={theusername}
1
vote
1answer
41 views

Login WP - Connect single field to an external api

I made a plugin to allow wordpress login with external api. Everything works, now what I have to do is that when a user logs in for the first time, the plugin checks to see if it is already present on ...

1
2 3 4 5
30