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

Can’t access wp-admin

Let’s try this, Open up your wp-login.php file and add the following update_option calls, update_option(‘siteurl’, ‘http://your.domain.name/the/path’ ); update_option(‘home’, ‘http://your.domain.name/the/path’ ); beneath, require( dirname(__FILE__) . ‘/wp-load.php’ ); so… it should look like, require( dirname(__FILE__) . ‘/wp-load.php’ ); update_option(‘siteurl’, ‘http://www.example.com/’ ); update_option(‘home’, ‘http://www.example.com/’ ); Where http://www.example.com/ should match your domain. Then visit your login page. Then remove … Read more

Categories wp-login-form Tags wp-login-form

change register url on wp-login page

Code from @bainternet’s website. function wpse127636_register_url($link){ /* Change wp registration url */ return str_replace(site_url(‘wp-login.php?action=register’, ‘login’),site_url(‘register’, ‘login’),$link); } add_filter(‘register’,’wpse127636_register_url’); function wpse127636_fix_register_urls($url, $path, $orig_scheme){ /* Site URL hack to overwrite register url http://en.bainternet.info/2012/wordpress-easy-login-url-with-no-htaccess */ if ($orig_scheme !== ‘login’) return $url; if ($path == ‘wp-login.php?action=register’) return site_url(‘register’, ‘login’); return $url; } add_filter(‘site_url’, ‘wpse127636_fix_register_urls’, 10, 3);

Categories wp-login-form Tags wp-login-form

How to use wp-login.php page only for logout?

WordPress has hooks so you don’t need to actually remove wp-login.php. login_head fires before any HTML is rendered for the login form, and wp_logout fires after the login session has been destroyed. You can put this code in a custom plugin or in your theme’s functions.php file to let logout requests continue working but block … Read more

Categories wp-login-form Tags logout, wp-login-form

How to change “Registration complete. Please check your e-mail.” in wp-login.php

After wp-login.php figures out what error messages to display, the $errors object gets passed through the wp_login_errors filter: $errors = apply_filters( ‘wp_login_errors’, $errors, $redirect_to ); When that error message is added to the list of “errors”, wp-login uses the code ‘registered’, which you can use to narrow down your search. So something like this should … Read more

Categories wp-login-form Tags wp-login-form

Modify wp-login.php labels: Username to Email

Found this here: https://wordpress.org/support/topic/how-to-change-the-text-labels-in-userpass-box-on-login-page/ The other answer here didn’t work for me, but this one did. Just in case this helps anyone. add_filter( ‘gettext’, ‘register_text’ ); add_filter( ‘ngettext’, ‘register_text’ ); function register_text( $translated ) { $translated = str_ireplace( ‘Username or Email Address’, ‘Your Custom Text’, $translated ); return $translated; }

Categories wp-login-form Tags wp-login-form

login_enqueue_scripts does not ovewrite the default styles

@Kevin, here a couple options how to overwrite css for login page. Via login_enqueue_scripts If you use this hook, you need to create css file the same path with functions.php, say login-style.css, add your code inside, change your property background-image like this background-image: url(assets/images/logo.png); ( make sure your path correct ), and add your function … Read more

Categories wp-login-form Tags 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
Newer posts
← Previous Page1 … Page5 Page6
+ 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
  • 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