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

login

Replacing default display name to login name

Based on this this answer: add_action( ‘wp_login’, ‘wpse_9326315_format_user_display_name_on_login’ ); function wpse_9326315_format_user_display_name_on_login( $username ) { $user = get_user_by( ‘login’, $username ); $userdata = array( ‘ID’ => $user->ID, ‘display_name’ => $user->user_login, ); wp_update_user( $userdata ); } As soon as they log-in the settings gets changed. So you not only affect new users but also existing ones.

Categories login Tags buddypress, login

Login problem after installing my written plugin [closed]

finally I have found the answer, the answer is in this link: How To Fix The WordPress White Screen of Death (Theme/Plugin Error) the answer is too odd! that was happened because new line character(enter) between close and open tag of php…like this: in the line 11 you can see an example, when it have … Read more

Categories plugins Tags dashboard, login, plugins

Redirection on Custom page

If a user is not logged in, your code will redirect to the login page even if the user is already in the login page so you end up with a infinite redirection loop. You should check if the user is logged in and the page where he/she is and redirect if he/she is not … Read more

Categories redirect Tags login, redirect

Secure login on wordpress [closed]

If you use a function like wp_get_current_user() or get_currentuserinfo() on the page they land on once logged in (via wp-login.php) it will provide you information on the user that just logged in, like ID and username etc. You can use this information to bring in that specific users details/posts/auction items/courses/whatever with a custom query or … Read more

Categories login Tags login

Why is wp-login trying to send an email?

wp-login is the file used to send user passwords e.g. new user registrations user lost passwords It might be you’re getting a lot of registration spam? Is registration turned off on your install (settings > general)?

Categories login Tags email, errors, login, smtp

Multisite Login problem

This is the relevant code from ms_site_check(): $blog = get_blog_details(); // truncated if ( ‘1’ == $blog->deleted ) { if ( file_exists( WP_CONTENT_DIR . ‘/blog-deleted.php’ ) ) return WP_CONTENT_DIR . ‘/blog-deleted.php’; else wp_die( __( ‘This user has elected to delete their account and the content is no longer available.’ ), ”, array( ‘response’ => 410 … Read more

Categories multisite Tags login, multisite

Change avatar on themed profile page

I also use Simple Local Avatars with Theme my login . I have had the same problem. My solution is very simple .Check form in profile-form.php template directory. And add enctype attribute to form (enctype=”multipart/form-data” )

Categories themes Tags avatar, dashboard, login, profiles, themes

Lost password and back to blog in same line

My solution. I added via functions.php the following: function my_login_logo() { ?> <style type=”text/css”> .login #backtoblog{ float: right; position: relative; top: -35px; } </style> <?php } add_action( ‘login_enqueue_scripts’, ‘my_login_logo’ ); That code move to right side and a little to top the ‘Back to Blog/site’ link. Hope that helps!

Categories customization Tags customization, login

Disable Admin CP authentication (or auto login)

Here is example code that will log everyone in as ‘autologinuser’. The ‘autologinuser’ needs to be created and given a role prior to using this code. function my_autologin() { if (!is_user_logged_in()) { $uid = ‘autologinuser’; $user = get_userdatabylogin( $uid ); wp_set_auth_cookie($user->ID); wp_set_current_user($user->ID); do_action(‘wp_login’, $user_login); // optional } } add_action(‘init’,’my_autologin’);

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

How do I hook my function to run only after submitting login form

The filter runs on every page load, but the first argument will be a WP_User object only on successful submission. It will be null if nothing was submitted, but most likely it will be a WP_Error object, which you can check for. If you want to know the specific error you have to look at … Read more

Categories filters Tags filters, hooks, login
Older posts
Newer posts
← Previous Page1 … Page87 Page88 Page89 … Page164 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