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

wp-login-form

Avoid to load default WP styles in login screen

Using wp_deregister_style( ‘login’ ) to remove the login styles will still result in a 404’d request for the login CSS file. However, if you re-register the login style after deregistering it you can prevent the unwanted request. add_action( ‘login_init’, function() { wp_deregister_style( ‘login’ ); wp_register_style( ‘login’ ); } ); This will leave you with a … Read more

Categories login Tags css, login, wp-enqueue-style, wp-login-form, wp-register-style

Change Login URL Without Plugin

About changing the login url, i already did by mysel. It help me protect my site and prevent brute force You can change it in htaccess. But you also need to add the filter to replace old login url in wordpress. Example to my website: File .htaccess: RewriteRule ^signin(.*) wp-login.php?%{QUERY_STRING} In your theme or custom … Read more

Categories wp-admin Tags .htaccess, security, url-rewriting, wp-admin, wp-login-form

Disable WordPress 3.6 idle logout / login modal window / session expiration

It finally hit me that javascript would be behind the interim login modal behavior, and that gave me a new direction in my search. I have disabled the new login popups by adding the following to my theme’s functions.php file: // Disable login modals introduced in WordPress 3.6 remove_action( ‘admin_enqueue_scripts’, ‘wp_auth_check_load’ ); If anyone’s interested … Read more

Categories login Tags authentication, login, session, wp-login-form

How do I change the language of only the login page?

This will need to go in a plug-in, just put the following inside a file (login-languge.php) in wp-content/plugins/ /* Plugin Name: Log-in Language Plugin URI: http://wordpress.stackexchange.com/questions/72692/how-do-i-change-the-language-of-only-the-login-page Description: Changes the language for log-in/register screens only Author: Stephen Harris Author URI: http://stephenharris.info Version: 1.0 License: GNU GPL 2 */ add_action(‘plugins_loaded’, ‘wpse72696_login_language_init’); function wpse72696_login_language_init(){ if( in_array( $GLOBALS[‘pagenow’], array( … Read more

Categories login Tags language, login, multi-language, wp-login-form

Adding “Remember Me” in custom login

insert this in form: <p class=”forgetmenot”><label for=”rememberme”><input name=”rememberme” type=”checkbox” id=”rememberme” value=”forever” /> Remember Me</label></p> In backend, like this: $credentials[‘user_login’] = $_POST[‘log’]; $credentials[‘user_password’] = $_POST[‘pwd’]; $credentials[‘remember’] = $_POST[‘rememberme’]; ….. wp_signon($credentials) ….

Categories PHP Tags ajax, login, php, wp-login-form

Prevent wp_login_form() from redirecting to wp-admin when there are errors

just add the following code to your function.php. it will redirect back user from where the login form is submitted. add_action( ‘wp_login_failed’, ‘my_front_end_login_fail’ ); // hook failed login function my_front_end_login_fail( $username ) { $referrer = $_SERVER[‘HTTP_REFERER’]; // where did the post submission come from? // if there’s a valid referrer, and it’s not the default … Read more

Categories login Tags login, wp-login-form

Custom login form

The login form is a simple html form sending username and password to wp-login.php. This is the simplest way to create a custom login form: <?php $redirect_to = ”; ?> <form name=”loginform” id=”loginform” action=”<?php echo site_url( ‘/wp-login.php’ ); ?>” method=”post”> <p>Username: <input id=”user_login” type=”text” size=”20″ value=”” name=”log”></p> <p>Password: <input id=”user_pass” type=”password” size=”20″ value=”” name=”pwd”></p> <p><input … Read more

Categories login Tags login, wp-login-form

The website cannot display the page

I fixed it!!! Woohoo. Using this link – link to patch I edited the line it advises and it works fine.

Categories admin Tags admin, wp-login-form

wordpress redirect after password reset

Here is a simple solution. Im hooking into login_headerurl. Maybe there is a better hook for this but it works, Put this in your functions.php: function wpse_lost_password_redirect() { // Check if have submitted $confirm = ( isset($_GET[‘checkemail’] ) ? $_GET[‘checkemail’] : ” ); if( $confirm ) { wp_redirect( home_url() ); exit; } } add_action(‘login_headerurl’, ‘wpse_lost_password_redirect’); … Read more

Categories password Tags password, Reset, wp-login-form

Disable Or Redirect WP-login.php

After finding this question, and testing a few of the answers, the below is a “cleaned up” version of what I am using in a production environment. This version does not throw any notices / errors, and also allows for password resets to work: // Hook the appropriate WordPress action add_action(‘init’, ‘prevent_wp_login’); function prevent_wp_login() { … Read more

Categories wp-login-form Tags wp-login-form
Older posts
Newer posts
← Previous Page1 … Page33 Page34 Page35 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