The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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

Easy way to check auth_cookie_expiration setting in browser dev tools?

I'm trying to change the auth_cookie_expiration setting in my functions.php file in order to limit all logins to 2 hours. I've done the basic hook for this: function expire_in_120_minutes() { ...
0
votes
0answers
25 views

Redirect after login when WordPress in subdirectory

I've a problem in my Wordpress website which is after I login from /wp-admin I didn't redirected to anywhere just keep seeing the login page without any errors. it was working fine when the site was ...
0
votes
0answers
36 views

create post usin rest API only after user have been registered and logged in via ajax returns 403 cookie nonce is invalid

I have a 3 step form and the last step is register or log in step. If the user is already logged in the third step is not shown to him and after second step the form will generate post using wp rest ...
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() { $...
0
votes
2answers
788 views

Error “Sorry, you are not allowed to access this page”

I renamed plugins folder, removed unused themes, checked wp_capabilities for my website, It's getting error like below after login page and redirecting to home page.
0
votes
0answers
42 views

Wrong username or password error in wordpress

WordPress login works fine but when I want to do website login (i.e, As Customer username and password) I am getting this error "Wrong username or password". I have taken its backup and installed it ...
0
votes
0answers
44 views

How to set password protected cookie with ajax POST?

I've tried sending a post request to wp-login.php, but I'm getting a 406 error. I also tried copying the relevant parts of wp-login.php to my own script and sending the post there, but the cookie it ...
0
votes
2answers
104 views

How to use login_redirect with a user capability

The following code should redirect the user to a specific page if they have the manage_woocommerce capability or higher - but it doesn't and just goes to the main dashboard. add_filter( '...
0
votes
1answer
43 views

Can't login with any account - No error message shown

I'm trying to login to one of my Wordpress sites through the /wp-login.php link. When submitting the login form the page refreshes but does not re-direct to the /wp-admin.php dashboard. I've tried ...
0
votes
0answers
256 views

Redirect a login form, if referer contains URL query string parameter

I am trying to redirect a default WP login form, if it's HTTP referer contains some specific query string parameter. Scenario: I need to redirect new users (the ones who just created their passwords ...
0
votes
1answer
20 views

unable to Login to Admin

Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'no_wordpress_errors' not found or invalid function name in /home/cafereminiscence/public_html/wp-includes/plugin....
0
votes
1answer
31 views

Create a login page which redirects to a specific page?

I know you are able to redirect users from the regular login page. But I don't want to do this. I want to keep the standard login intact and create another login page which when the user logs in from ...
0
votes
2answers
86 views

wp-login not found - All usual solutions not working

A new client of me can't login to his old(er) Wordpress website: wp-login gives a 404 error and wp-admin gives a 500 error. Here are the links (removed) I came across this issue before, but this ...
0
votes
1answer
35 views

Redirecting the lost password page request when using a custon login page

I have a custom login page and hence have setup the following redirects: add_action('init', 'my_redirect_login_page'); add_action('wp_login_failed', 'my_custom_login_failed'); add_filter('...
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 ...
0
votes
1answer
40 views

WordPress redirects to login page when I enter url.com/index.php

WordPress redirects to login page when I enter url.com/index.php or just http://url.com. When I enter with https the opens normally. Please help.
0
votes
1answer
282 views

I can't access login page

I was copying my web from live host, but when I want to access admin dashboard, the url can't be accessed The url is changed to be like this : http://backstagewhisp.local/wp-admin/backstagewhisp....
0
votes
1answer
161 views

User does not exist

I got this message when trying to log into comment on a post. Then I got it when I went to log into my own wordpress site. I could find the site so it's still there. I was using Safari to do this, ...
0
votes
0answers
271 views

Calling wp-login.php?action=postpass not setting cookie

I'm trying to set the wp-postpass cookie via my front end homepage written with vuejs. Relevant code below: submitForm() { console.log(this.password) axios .post('https://mywebsite.com/wp-...
0
votes
1answer
27 views

How can I show login popup when user clicks on download button

I am looking for adding a login popup to my WP page where the I have a download button to download some file. when a user who is not logged in clicks on the download button, I want to show the login/...
0
votes
1answer
22 views

Wordpress login page not display

i am trying to access my admin panel but i cannot. An error is occur which i will show you in screenshot. This error is occur because i forgot my password and try to login many time. my website is ...
0
votes
0answers
48 views

WP users cant reset password

I had users complains that they forgot their password, and after they changed and being accepted, when they try to login they get pass error. I tested it and i confirmed that the changed pass is not ...
0
votes
1answer
74 views

Wordpress Login & Register works in localhost but don't work on server

how are you ? i have a Ridiculous problem. i created a ajax login and register function in wordpress . they works without any problem in localhost,but they don't work when i upload this project on ...
0
votes
2answers
41 views

HOW do you Redirect buddypress login to EDIT tab not PROFILE tab on profile page? [closed]

HOW do you Redirect buddypress login to EDIT tab not PROFILE tab on profile page?
0
votes
1answer
179 views

Check for empty username or password on login

I'm building a custom login page for clients and wish to keep the wp-login page for site administrators. For checking for empty fields I'm using the code: function verify_user_pass($user, $username, ...
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 ...
0
votes
1answer
31 views

What could cause a staging environment to not send wordpress_logged_in cookies?

We have a custom login and account creation plugin. It works fine on our live environment (example.com) but not on our staging environment (test.example.com). When we call wp_insert_user via an AJAX ...
0
votes
1answer
17 views

Trouble with custom login page

I am trying to make a partner portal page (page for our business partners to see important information specific to them) and therefore wanted to create a custom login page. I have read many tutorials ...
0
votes
1answer
44 views

How do I validate extra pin field on my WordPress login form page?

I have been able to add an extra field to my WordPress login form using the following code inside wp_login.php file, thanks to stackxchange. add_action('login_form','my_added_login_field'); function ...
0
votes
0answers
19 views

Opening WordPress on wordpress.example.com, while the webpage is at example.com

Is it possible to set up WordPress so that you log on on a subdomain while the webpage edited is the main domain? And if yes, how? I know about home and site URL, but all the examples to those were in ...
0
votes
0answers
42 views

Skip login form wp-login.php when already logged in,

I have a plugin that redirects to different pages after login filtered by user role. To get user roles back on their 'custom' page when they have navigated away from it I had the idea to send them ...
1
vote
1answer
423 views

Changing user_nicename

user_nicename has the same value with user_login. I want to change user_nicename value only by using code snippet into functions.php or wp-config.php. Is it possible without using phpmyadmin or any ...
0
votes
0answers
18 views

Logged out content shown until refresh

Whenever a logged in user lands on a page it has also opened when still logged out, it shows the logged out version of that page until you refresh the page. Is there a way to force the browser to ...
1
vote
1answer
25 views

Members only site - still need the lost password page accessible

My site requires login before viewing any page and it works great: function wpse_131562_redirect() { if ( !is_user_logged_in() ) {auth_redirect(); }} add_action('template_redirect', '...
0
votes
1answer
4k views

How can I modify the default reset (lost) password email text?

I found some similar questions on here, but was unable to apply the solutions that were provided. The standard password reset email that Wordpress is sending does not provide a clickable url for ...
0
votes
0answers
91 views

WordPress login is now working, it just refresh the page and nothing happens.

I have two websites on hosting (Hostgator), Recently I migrated one more website to the same hosting from Namecheap. Now the problem is that all of the three website's WordPress login is not working, ...
0
votes
3answers
1k views

Possible to display a button only if user are login?

I have a class "rty-downloads" I want this class to displayed only for WordPress login users, is that possible? Thanks in advance
0
votes
0answers
32 views

How do I send a POST request with params with WordPress REST API

I am new to WordPress and I'm trying to make a POST request to login a user. I want to be able to send "username" and "password" as params while making this call. How can I do so. This my code so far ...
1
vote
1answer
32 views

Admin username and password

I use ceber security plugin which protects my site again malicious attacks etc. I checked today and there were over 20 lock outs. I checked ip addresses and there were no constituencies, they were ...
0
votes
1answer
67 views

wp login password reset

I have forgotten my login to my wp site so have asked to reset it, however in the email that is sent for me to change my password there is no link to click to reset the password?
0
votes
1answer
42 views

After moving Wordpress to its own directory, login doesn't work

My site keeps getting hacked, so I decided to move WordPress to its own directory so that I can generate and use static pages in the main directory with Simply Static. I am trying to move WordPress ...
0
votes
1answer
61 views

Custom login page always redirecting to wp-login.php

I've created a custom login page where users can login on my website, but when I try to log in, it's redirected to wp-login.php and I have to enter a reCAPTCHA (I hate those!). I've already tried to ...
0
votes
2answers
167 views

Custom action on login and “remember me”

I try to call a function everytime a user login to website. I succeeded with the wp_login hook for user who fill the login form. However I can't find a hook for an user which has the "remember me" ...
0
votes
0answers
29 views

home page url about login redirect

I using my theme that I made. And I also made login plugin after googling. When I set a specific page as 'Home-page'(wp-admin > setting > reading), login-redirect works good. But I added front-page....
0
votes
1answer
337 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 ...
0
votes
1answer
57 views

When the user entered an unauthorized url redirect to login page

I have custom account page for user, i want the users who are not logged in site when enter http://example.com/account redirected to a custom login page. Here My code function setup_user_panel_url()...
0
votes
1answer
33 views

Admin Login page not working at all

I'm running Wordpress on a small Ubuntu 16.04 Server, with Nginx and Php 7.0. Yesterday I noticed that I didn't have the site configured correctly, so that http://example.com worked, but http://www....
0
votes
1answer
288 views

How to show private pages based on a user's role?

For example. User "Mary" should be able to view to the private page "marys page" after logging in, "Tom" should be able to view the private page "toms page", etc I created new users and am using the "...
0
votes
1answer
18 views

WordPress login is not showing , there is warning?

There is problem , just add Gutenberg plugin How to solve this?