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

Make WordPress User Name the Email Address When Register

You could use the user_register-hook, to replace the username with the mail-address right after the account has been created. It could be something like this (untested) in your functions.php: add_action( ‘user_register’, ‘wpse216787_mail_as_username’, 10, 1 ); function wpse216787_mail_as_username( $user_id ) { $email = get_the_author_meta( ‘user_email’, $user_id ); update_user_meta($user_id, ‘user_login’, $email ); }

Categories login Tags login, wp-login-form

Change the default WordPress image on the dashboard login to a custom image [duplicate]

You can upload an image to your theme and add this to your functions: add_action(“login_head”, “my_login_head”); function my_login_head() { echo ” <style> body.login #login h1 a { background: url(‘”.get_bloginfo(‘template_url’).”/path to your image/logo-login.gif’) no-repeat scroll center top transparent; height: 90px; width: 400px; } </style> “; } Source: https://wordpress.org/support/topic/change-login-picture

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

WordPress wp-login.php cookie error (WordPress Version 4.2.9)

Use your FTP client or cPanel: Open file style.css Rename the Active theme before updating. Successfully logged in. Change back to the original Theme.

Categories cookies Tags cookies, wp-login-form

Can I use core passworded page/post functions outside of wp-login.php?

Can I use core passworded page/post functions outside of wp-login.php?

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

WordPress login form with fancybox

You can create a custom ajax action or add a custom parameter to your post request and catch it on init action callback. In that ajax action/init callback you can use wp_signon function to check if the credentials are ok and return proper response. I would write some code but I’m on mobile and would … Read more

Categories wp-login-form Tags validation, wp-login-form

Add video to wordpress login page

In the template file change the followign stuff <div id=”woffice-login-left”> <video>Video Tag goes here</video> <?php echo get_search_form();?> </div>

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

Hide login page and use wp_login_form on ordinary pages

Hide login page and use wp_login_form on ordinary pages

Categories login Tags admin-init, login, wp-login-form

Redirect after login to current URL

I need to do the next step: To redirect my logout, I put the next code in functions.php function out_home(){ wp_redirect(home_url()); exit(); } add_action(“wp_logout”,”out_home”); In my header.php, to change the value of my URL in the login: $URL_POSTLOGIN = add_query_arg(array(),$wp->request); function login_go_home($URL_POSTLOGIN){ wp_redirect($URL_POSTLOGIN); exit(); } add_action(“wp_login”,”login_go_home”); Maybe is not the best solution but in my … Read more

Categories functions Tags functions, login, wp-login-form

Using gettext on wp-login.php won’t change “Back to site name” text

Your snippet works fine for me. Although, you should be testing the second argument, rather than the first. See the codex. You are testing for text that may already have been translated, so your string comparison could fail. function custom_login_text ( $translated_text, $untranslated_text ) { if (in_array( $GLOBALS[‘pagenow’], array( ‘wp-login.php’, ‘wp-register.php’ ) )) { if … Read more

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

Custom login-form redirect

Custom login-form redirect

Categories redirect Tags redirect, wp-login-form
Older posts
Newer posts
← Previous Page1 … Page7 Page8 Page9 … 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