allow only lowercase user registrations

The filter validate_username sends and expects a boolean value, not a string. Hook into sanitize_user and use mb_strtolower(). Sample code, not tested: add_filter( ‘sanitize_user’, ‘wpse_83689_lower_case_user_name’ ); function wpse_83689_lower_case_user_name( $name ) { // might be turned off if ( function_exists( ‘mb_strtolower’ ) ) return mb_strtolower( $name ); return strtolower( $name ); }

Calling User Nickname

Try echo the_author_meta( ‘nickname’, $current_user->ID ); or you can also use; $current_user = wp_get_current_user(); echo $current_user->nickname;

How to retrieve lost username/ email log- in ?

Without the email it will be hard, WordPress likely will not be willing to release that info. You will have a few options: Try any email you would have used in the forgot password function. Search all your emails for the emails you got initially. WordPress sends update emails periodically so whichever one has gotten … Read more

How do I display “Hello username” if logged-in on the homepage

try my variant: <?php if (!is_user_logged_in()) : ?> <form action=”<?=get_home_url(); ?>myaccount” method=”POST”> <input type=”submit” value=”<?php _e(‘Hello, Client! Click to sign in:’, ‘theme’); ?>”> </form> <?php else: ?> <a href=”<?=get_home_url();?>myaccount”><?php _e(‘Hello ‘, ‘theme’); echo wp_get_current_user()->user_login;?></a> <a href=”<?=wp_logout_url(esc_url( ‘https://’. $_SERVER[‘HTTP_HOST’] . $_SERVER[‘REQUEST_URI’] ));?>myaccount”>Logout</a> <?php endif; ?>

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)