Support » Plugin: Navigation Menu Links » Request to display login user avatar

  • Resolved oshi

    (@thugzanime)


    Hi, may i request for the feature update to have the option to display a login user profile avatar on the menu navi please.

    Hope this code can be useful

    This code display a login user profile avatar name and a welcome message optional.

     <?php 
            	if ( is_user_logged_in() ):
            		$current_user = wp_get_current_user();
            
            	if ( ($current_user instanceof WP_User) ) {
                    echo 'Welcome : ' . $current_user->display_name ;
            	    echo get_avatar( $current_user->user_email, 32 );
            	}
            	endif;
            
            ?> 

    Thanks great plugin.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Request to display login user avatar’ is closed to new replies.