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

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

Change “You are now logged out” text

This allows for the message to be overwritten specifically for the loggedout message while leaving all other messages alone. Here is more documentation on the filter. add_filter( ‘wp_login_errors’, ‘my_logout_message’ ); function my_logout_message( $errors ){ if ( isset( $errors->errors[‘loggedout’] ) ){ $errors->errors[‘loggedout’][0] = ‘This is the <strong style=”color:red;”>logged out</strong> message.’; } return $errors; }

Categories filters Tags filters, login, logout, 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

How to override wp-login.php

Don’t modify core, use the actions and hooks system instead add_action( ‘login_init’, ‘yourloginoverrides’ ); function yourloginoverrides() { // do some check and call wp_redirect if its true or whatever you wanted to do }

Categories customization Tags customization, login, updates, wp-login-form

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

To answer your specific question, “How can I modify the default reset (lost) password email text,” the answer would be to use the retrieve_password_message filter. And ultimately that might be a way to solve your problem. But I think you need to dig a little deeper to figure out what’s really going on. In your … Read more

Categories templates Tags email, login, password, templates, wp-login-form

How to redirect all requests to wp-login.php?

To restrict direct access only for ‘wp-login.php’, without POST or GET request (useful for custom ajax login forms), I use the advanced function: function possibly_redirect(){ global $pagenow; if( ‘wp-login.php’ == $pagenow ) { if ( isset( $_POST[‘wp-submit’] ) || // in case of LOGIN ( isset($_GET[‘action’]) && $_GET[‘action’]==’logout’) || // in case of LOGOUT ( … Read more

Categories redirect Tags redirect, wp-login-form

custom login page redirect to logged in user profile page

If you’re using the built in function to create the login box, one of the parameters is redirect. wp_login_form function reference To get your profile link, check when you’re logged in as admin. The link is the same, but the options presented are different. Default is yoursite.com/wp-admin/profile.php

Categories login Tags buddypress, login, wp-login-form

I want to disable E-Mail verifcation / activation when a user signs up for my WordPress site

You can use plugins for do that also have a lot of plugins for this purpose below some of them may be useful for you Remove Email Verification Plugin BP Disable Activation Plugin REMOVE EMAIL VERIFICATION

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

Multi-steps WordPress registration : in 4 steps how to?

The easiest method of doing this would be to use the Gravity Forms plugin, it costs money, but it’s well worth the investment, and quickly pays for itself in saved development time

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

Logout/login redirect CSS issue

If you want to redirect to the page you’re currently on use: wp_logout_url( $_SERVER[‘REQUEST_URI’] ); or wp_logout_url( get_permalink() ); Or if you want to redirect to another site use the allowed_redirect_hosts function.

Categories functions Tags css, functions, logout, redirect, wp-login-form
Older posts
Newer posts
← Previous Page1 … Page31 Page32 Page33 … 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