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

Increase of failed login attempts, brute force attacks? [closed]

There is currently a botnet active, attacking WordPress and Joomla sites. And probably more. You should see more blocked logins. If you don’t, there is probably something wrong. But be aware, blocking IP addresses doesn’t help against a bot net with more than 90,000 IP addresses. And if you do that per plugin avoid Limit … Read more

Categories login Tags login, security

How can I redirect user after entering wrong password?

wp_login_form() creates a form with an action attribute of site_url/wp-login.php, which means that when you click the submit button the form is posted to site_url/wp-login.php which ignores redirect_to on errors (like wrong password) so in your case either go back to using a plugin or recreate the whole login process and that way you will … Read more

Categories login Tags login, wp-login-form

Check if user is logged in using JQuery

In case you want to know if the user is logged in at the current moment. The other answers check if the user is logged in or not when the page loaded not the time when you’re running the javascript. The user could have logged in in a seperate tab for instance Put this in … Read more

Categories jQuery Tags jquery, jquery-ui, login

How to login with email only no username?

Update: I have created a plugin for login, registration and retrieve password with email. https://wordpress.org/plugins/smart-wp-login/ Answer in short, you can configure WordPress to login with email. Three Steps: Remove default authentication function Add custom authentication function Change text “Username” in wp-login.php to “Email” One Note: Don’t edit core files. Remove WordPress default authentication function. WordPress … Read more

Categories login Tags email, login

Is there any way to rename or hide wp-login.php?

If you are doing this for your own site then using .htaccess might be the easiest way although it could get tricky if you want to make it work for a plugin as there would be lots of different subtle configuration differences to support. Here are some articles that could help; not all are directly … Read more

Categories login Tags login, security

What’s the easiest way to stop WP from ever logging me out

By default, the “Remember Me” checkbox makes you get remembered for 14 days. This is filterable though. This code will change that value: add_filter( ‘auth_cookie_expiration’, ‘keep_me_logged_in_for_1_year’ ); function keep_me_logged_in_for_1_year( $expirein ) { return 31556926; // 1 year in seconds }

Categories security Tags login, security, wp-admin

Can’t log in: “ERROR: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress.”

Add below line to your wp-config.php before /* That’s all, stop editing!…*/ define(‘COOKIE_DOMAIN’, $_SERVER[‘HTTP_HOST’] ); /* That’s all, stop editing! Happy blogging. */

Categories login Tags cookies, login, migration

wp_enqueue_script was called incorrectly

Disable all plugins and switch to the default theme. It should be gone now. Then enable each addon step by step, until the problem comes back. You know the source now, let’s say a plugin. The plugin calls probably wp_enqueue_script too early. Find all occurrences of that function, then make sure they are bound to … Read more

Categories functions Tags errors, functions, login

Is there a hook that runs after a user logs in?

The action hook wp_login runs when the user logs in – it can run a simple function. function do_anything() { //do stuff } add_action(‘wp_login’, ‘do_anything’); documentation : https://codex.wordpress.org/Plugin_API/Action_Reference/wp_login The real breadwinner here is wp_authenticate which has a bit of documentation. It passes an array with the given username and password, which gives you the opportunity … Read more

Categories hooks Tags actions, hooks, login

Can I programmatically login a user without a password?

wp_set_auth_cookie() will log a user in without having to know their password.

Categories login Tags authentication, login
Older posts
Newer posts
← Previous Page1 … Page160 Page161 Page162 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
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • Get the name of the template/*html file used
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
  • How to display the description of a custom post type in the dashboard?
  • Critical error on image display
  • Copying WP data and files into new install?
  • How to determine the DirectAdmin WordPress backup date?
  • How to get list of ALL tables in the database?
© 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