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

How to change the title attribute for the WP logo image on wp-login.php

function my_login_logo_url() { return home_url(); } add_filter( ‘login_headerurl’, ‘my_login_logo_url’ ); function my_login_logo_url_title() { return ‘Your Site Name and Info’; } add_filter( ‘login_headertitle’, ‘my_login_logo_url_title’ ); For details follow link

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

Custom Field For Login

Custom Field For Login

Categories login Tags login, wp-login-form

Redirect user to login and then to page where they came from

Redirect user to login and then to page where they came from

Categories redirect Tags login, redirect, wp-login-form

Login Form Redirection

Add these two blocks of code to functions.php or make a plugin. Everything should be self explanatory with comments. You could also use jQuery Validate plugin to check username, password via ajax and have these 2 blocks of code for backup if user has disabled JS. These two blocks of code should cover all possible … Read more

Categories redirect Tags login, redirect, wp-login-form

HTML5/CSS3 Polyfill for wp-login.php

I asked a more general (non-WordPress specific) question about polyfilling on StackOverflow (I strongly recommend reading through the ensuing comments for context) which has lead me to the following answer: add_action( ‘login_enqueue_scripts’, ‘wpse_215432_oldbrowsersupport’); function wpse_215432_oldbrowsersupport() { wp_register_script( ‘ie_html5shiv’, get_stylesheet_directory_uri().’/js/html5shiv.min.js’, __FILE__, false, ‘3.7.3’ ); wp_enqueue_script( ‘ie_html5shiv’); wp_script_add_data( ‘ie_html5shiv’, ‘conditional’, ‘lt IE 9’ ); //Note: Placeholder script … Read more

Categories CSS Tags css, html5, wp-login-form

How to create session for user which is not an admin user

// ADMIN $user_id = 1; require_once (ABSPATH . ‘wp-includes/pluggable.php’); if (!is_admin()) { // DEMO USER $user_id = 6; } if ($current_user_id != $user_id) { $user = get_user_by(‘id’, $user_id); if ($user) { wp_set_current_user($user_id, $user->user_login); // wp_set_auth_cookie($user_id); if (wp_validate_auth_cookie(”, ‘logged_in’) != $user_id) { wp_set_auth_cookie($user_id); } // do_action(‘wp_login’, $user->user_login); } }

Categories plugin-development Tags plugin-development, session, 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
Older posts
Newer posts
← Previous Page1 … Page6 Page7 Page8 … Page34 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