Skip to content
Read For Learn
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP

login

How to customise wp-login.php only for users who are setting a password for the first time?

You can add an extra help message box, on the reset password screen: with the following: /** * Display an extra help message box on the ‘reset password’ screen * * @link http://wordpress.stackexchange.com/a/204429/26350 */ add_action( ‘validate_password_reset’, function( $errors ) { add_action( ‘login_message’, function( $message ) { // Modify this help message box to your needs: … Read more

Categories login Tags login, password, user-registration, wp-login-form

How can a Firebase user registration and login be integrated into a WordPress site?

WordPress itself provides you with a function called register_new_user() which can be used to create a user-account in your WP instance. You will have to write some kind of integration between your Firebase DB and WordPress but this function would probably be the way to go.

Categories plugins Tags database, javascript, login, plugins, user-registration

Display last login time

Are you formatting the mysql2date() input string as ‘Y-m-d H:i:s’, as specified in the Codex? Also, why not use this same format as $date_format? EDIT: What output do you get for $last_login? The second argument in human_time_diff() is optional. Why not just omit it? That way, if you get valid output from $last_login, you should … Read more

Categories login Tags date-time, login

Daily notices of failed login attempts for non-existent admin user

Yes, you can safely ignore it, especially if your site has no “admin” user. The brute-force attack will never accomplish anything. I also use Limit Login Attempts – mainly for this very purpose. It lets me know when manual brute-force attempts are being made on my back-end login. (Last time I bothered to WHOIS the … Read more

Categories admin Tags admin, login

Using `auth_redirect` : keeps asking me to login even when I’m logged in

The problem is that this function is normally used in the backend. To use it in the frontend, you need to add the following filter: add_filter( ‘auth_redirect_scheme’, ‘wpse16975_check_loggedin’ ); function wpse16975_check_loggedin(){ return ‘logged_in’; } Then auth_redirect() will work as expected : redirect users to the login form if they are not logged in.

Categories redirect Tags authentication, login, redirect

wp-login.php redirecting to HTTPS

I figured this one out finally. It turns out that the data in the wp_usermeta table for user_id=1 (admin) was corrupted. This was apparently causing the SSL redirect issue when trying to login to any domains. Once I restored the proper data for user_id=1 into wp_usermeta, everything worked fine. I would much rather have WordPress … Read more

Categories login Tags login

Restrict Access to wp-login.php

The action wp_login_failed fires when there’s a failed login due to a faulty username/password combination. So that’s a good place to start. This is a super simple example that just redirects to the home page. <?php add_action( ‘wp_login_failed’, ‘wpse25628_login_failed’, 10, 1 ); /** * Catches all failed logins and redirect them to the * websites … Read more

Categories redirect Tags login, redirect, user-registration

Is it alright for two people to simultaneously be logged into a WP site as administrator?

If you are using a newer version of WordPress, you’ll see that you can’t both edit the same page/post because it will show that as locked (you can take over though). I agree that a separate admin account would be good. WordPress is designed to support many users logged in and active. The only issue … Read more

Categories login Tags login

What is the purpose of logging out after WordPress upgrade?

4.0 made a change to the structure of the authentication cookie and added a “token” feild to it. I assume that you were logged out because your older style cookie didn’t match the new format.

Categories login Tags login, upgrade

Getting “Cookies are blocked or not supported by your browser” on login page

Wrangled up some things to check: @otto via comment on this post Look at the login page’s HTML source. Is there anything at all before the initial DOCTYPE line? Even a blank line? If so, then you have some piece of code creating output before the headers are made, in which case this prevents it … Read more

Categories login Tags cookies, login, migration
Older posts
Newer posts
← Previous Page1 … Page147 Page148 Page149 … Page164 Next →
+ More

Recommended Hostings

Cloudways: Realize Your Website's Potential With Flexible & Affordable Hosting. 24/7/365 Support, Managed Security, Automated Backups, and 24/7 Real-time Monitoring.

FastComet: Fast SSD Hosting, Free Migration, Hack-Free Security, 24/7 Super Fast Support, 45 Day Money Back Guarantee.

Recent Added Topics

  • Bug in translation system: load_theme_textdomain() returns true, files are available and accessible but the language defaults to english
  • Post Navigation Elementor
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • WPFacet multiple loop displaying duplicate content
  • Get the name of the template/*html file used
  • Fix: WordPress.DB.PreparedSQL.NotPrepared Plugin Check (PCP)
  • Removing unnecessary CSS and JS code from wp_head()
  • hexagonal image gallery. Am I on the right track? [closed]
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
© 2026 Read For Learn
Next Page »
  • Database
    • Oracle
    • SQL
  • algorithm
  • asp.net
  • assembly
  • binary
  • c#
  • Git
  • hex
  • HTML
  • iOS
  • language angnostic
  • math
  • matlab
  • Tips & Trick
  • Tools
  • windows
  • C
  • C++
  • Java
  • javascript
  • Python
  • R
  • Java Script
  • jQuery
  • PHP
  • WordPress