if ( is_user_logged_in() ) { $user_info = wp_get_current_user(); $user_last_name = $user_info->user_lastname; printf( __( '%s', 'wpdance' ), $user_last_name ); }