Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

Questions tagged [login]

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

435 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
7
votes
0answers
2k views

Login members using web services

I want a login system which authenticate user from web services.The steps should be as follows: we have few member web sites (Outside of wordpress server). Each member website have its corresponding ...
4
votes
0answers
1k views

How to allow users login to WP from external domain and make REST requests

Basically what i want to do is: Use Wordpress as a login system and data storage for web-application on another domain. Make users able to register and perform REST calls from the application. Let ...
4
votes
1answer
9k views

I want to disable E-Mail verifcation / activation when a user signs up for my Wordpress site

when a new user registers an activation link is sent to his e-mail account. I want the user to enter his username, email address and password and straight register and be logged in without ...
3
votes
1answer
206 views

how to update current logged user username

I need to keep in sync the username and the email of my users. I don't know if there is a better way so I have tried running this code right after the user updates his profile data: global $wpdb; $...
3
votes
1answer
176 views

WordPress Multisite Login Access

I have a multisite installation and use an .htaccess directive to close access to wp-login.php. <files wp-login.php> errordocument 403 http://example.com/restricted/ order deny,allow deny from ...
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
0answers
255 views

Remote REST request to check login status

There are 2 wp installations, A and B. Is it possible to do a remote rest request from site A to find out if an user is logged into site B? If yes, how? With this information adjustments would be ...
2
votes
3answers
112 views

How do I redirect a user when he is logged in after clicking on a menu

I would like to redirect my logged in users automatically to a next page if they press a button on my menu. I would like to make it that if you're not logged in you'll get on a registration page and ...
2
votes
0answers
130 views

Login WordPress website using wp-rest api

I am using WordPress 4.8 and i am new to rest api . I have 2 websites , one is www.example.com and second is www.example.com/site2. That is second website is installed inside the first . In example....
2
votes
1answer
45 views

Wordpress login urls

Recently we've notice allot of brute force attacks on our website. To make things more secure we decided to limit the access to the wp-login url to only a few , trusted IP addresses. <Files wp-...
2
votes
0answers
1k views

Logging in redirects to correct page but shows logged out content until forced refresh

I'm trying to change some of the content being shown to viewers based on whether they are logged in or not. I'm using the is_user_logged_in() function in my child theme's functions.php to replace the ...
2
votes
0answers
519 views

Use Wordpress with a custom OAuth2 provider

I have a fresh Wordpress installation and a working OAuth2 server in Node.js (made using oauth2orize). The only plugins I've been able to find let me use only the well-known OAuth2 endpoints such as ...
2
votes
1answer
798 views

How to resolve error “Cookies are blocked due to unexpected output.”?

I am facing an error as per below at admin panel login. "ERROR: Cookies are blocked due to unexpected output." I've tried several solutions like, Log checking (No logs are showing in log file) ...
2
votes
2answers
1k 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 ...
2
votes
1answer
62 views

Logins through alias

My site is hosted by a university that runs all external traffic through an alias. The actual URL of the server is accessible only on campus. Right now I have the site address set to the alias and the ...
2
votes
0answers
6k views

Custom Reset Password & Forgot Password Front End Forms

I've successfully been able to redirect the default wp_login.php used for all login/registration/password reset to custom pages with the following filters: add_filter ( 'login_url', xxfunctionnamexx )...
2
votes
0answers
524 views

Rendering of custom walker menu function not working properly

I have a custom function for my nav walker menu that adds custom php/html to it, which can be seen below. It renders a twitter bootstrap dropdown menu that I would like to put my login form in. ...
2
votes
0answers
158 views

Share user table from WP with Drupal

I'm developing a sister website to a well-established private site that is already built in Wordpress. I can't use Wordpress to create what I need and I am therefore using Drupal. The owners of the ...
2
votes
1answer
652 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 ...
2
votes
1answer
497 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 ...
2
votes
1answer
3k views

Register/Login using only phone number?

Does anybody know how WP could be configured to use only a person's phone number as credentials? The flow would be as such; User enters number ..Receives a PIN Enter the PIN .. Assigns a password to ...
1
vote
0answers
45 views

disable site_url redirect in wp-login.php

I'm running a wordpress install on nginx, and I'm looking at novel ways of securing wp-admin. I know theres more than one way to do this (e.g. adding an http basic auth layer, login lockdown, 2FA, etc....
1
vote
1answer
31 views

Login error redirecting to wp-login page

I have a custom login page for a blog. If the user gets the logins incorrect then its re-directing them to wp-login page, but I'd like the error to be echoed out on the custom login page - is that ...
1
vote
0answers
37 views

How to fix 'Wordpress redirection loop problem in wp-login.php page'?

When I am going to the wp-login.php page of my wordpress website, the login form is not showing. Instead I can see its redirecting back infinitely to the same page. I am confused why suddenly this is ...
1
vote
0answers
54 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 ...
1
vote
1answer
20 views

Session Experies and Get Logged Out Within Few Minutes

I have wordpress simple blog with few plugins installed. My problem is that after logging and working for few minutes (hardly 2-5 minutes), session expires and I get logged out of the admin area. ...
1
vote
1answer
17 views

Redirect user to previous page after signup from custom form

I've looked on here and found lots of references to this, but none have worked for me, probably because there must be something in the custom code I am modifying that I don't quite understand. Having ...
1
vote
0answers
25 views

How to debug my custom login form looping intermittently

I have a custom log in form for users of my website where they can log in then view some information that related to them. The problem is sometimes this form will loop. I will get the message "login ...
1
vote
0answers
31 views

How can I force the user to log in, even if they're already authenticated?

I am creating a link to a Wordpress page. In this scenario, multiple users may use the same machine and get confused about who is logged in, so every time they follow the link they must be forced to ...
1
vote
0answers
33 views

Good way to block users within a multisite setup without deleting them?

This is probably a common problem with multiple possibilities to solve. However I am asking for an easy solution as I guess I am not the first one to have this problem. Assume we have a huge company ...
1
vote
1answer
45 views

Change login_message using title

I'm trying to add message on the login forms. How do I change the contents according to the page title or url parameters this code goes to my functions.php function custom_login_message() { $...
1
vote
0answers
23 views

How to use a custom login template and still have it linked to the wp-login.php instead of creating a new page?

Let's say I create a custom page template for my login using this: <?php wp_login_form(); ?> How can I force it be used at the /wp-login.php page instead of having to create e new page and ...
1
vote
0answers
17 views

How to add an extra variable to login and authenticate it?

I want to add an extra variable to my custom login and to authenticate it to then add it to an SQL database. My custom login: <?php require('wp-load.php'); require('site_config.php'); function ...
1
vote
0answers
51 views

SSO to WP, from a non-wp site on a different domain and server

I've been searching and searching. (not just here) The closest I've found is this: SSO / authentication integration with external 'directory service' But it assumes both sites are on the same ...
1
vote
0answers
21 views

Logging into sandbox subdomain WP

I have recently set up a subdomain to do wordpress testing on. I installed a new wordpress instance at sandbox.example.com. I have a main one set up at example.com. When I try to log into my new ...
1
vote
1answer
87 views

wordpress disable login for unverified user

I have buy a theme form marketplace. This page is auto login after registration. I want to disable auto registration after login and without approving user by admin user can't login. How can do that? ...
1
vote
1answer
43 views

Finding the original login information in the database

I manage the WordPress installation at my job but I'm not the first to occupy it. I've inherited this responsibility from a guy who no longer works here. Right now, we use and AD plugin that is ...
1
vote
0answers
14 views

Contributive page where people logged in can write

I'd like to have a page on my wordpress site where people can add a content really simply. They would click on a link that open a popup where they can login, add a content, and that's it. It would be ...
1
vote
0answers
35 views

Is it possible to designate the login.php as homepage?

Is it possible to designate the login.php as homepage AND would I be able to keep the url as "DOMAIN.COM"? Is there any reason why this would not be recommended?
1
vote
0answers
376 views

How to stay logged in on a multisite with different domains?

I understand that, if I use subdomains on a multisite, then WordPress has the built in function of keeping the users logged in. The different domains are a must. These sites were set up using the ...
1
vote
1answer
429 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 . ...
1
vote
0answers
210 views

Share WordPress login info with other PHP app

A customer asked for this feature: website with WordPress website with PHP app where is a login form Request is: "when i login info WordPress I've to be able to share login data with the PHP app so ...
1
vote
0answers
24 views

Is it possible to make sure that only my plugins output is shown to the enduser?

I'm building a members site, creating my own plugin because existing ones have far too many features. If defined a shortcode to protect a page (members only). If I have no logged-in user, the page ...
1
vote
0answers
56 views

getting logged in user info (wp-load.php) from parent directory

Directory structure: https://www.example.com/test.php https://www.example.com/blog/wp-load.php test.php: require_once("blog/wp-load.php"); global $current_user; get_currentuserinfo(); print_r($...
1
vote
0answers
119 views

Password field is empty when using wp_signon();

I'm trying to make a custom login action for my custom login page. Registration page with custom user meta works fine, but the problem with login page is that everything should work, but it doesn't ...
1
vote
0answers
129 views

Reset Password policy

Looking for to add reset password policy. Password specifications : 12 characters in length, 1 uppercase letter, 1 lowercase letter, 1 number, and 1 special character. I find a hooks for manage ...
1
vote
0answers
2k views

Having troubles connecting to Wordpress login page using Mamp

I have just downloaded Mamp and WordPress to my Macos X and I would like to be able to create and store some WordPress sites on this host. I have encountered a problem connecting to WordPress login ...
1
vote
0answers
99 views

Rewrite Rules and Login Issue

I have rewritten the rules in the .htaccess file of my root domain and now it shows exactly the same content as my subdirectory. Important: it is not been redirected to it. 2 seperate sites with ...
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 ...
1
vote
0answers
47 views

Facebook login for private group members

How can I make 'Facebook login' on my website to only allow members of a closed Facebook group to login? There are many Facebook login plugins and php codes available to allow anyone to login but none ...