<?php $user_id = get_current_user_id(); ?>
$user_obj = get_user_by('id', 1);
// get the current logged-in user object $user = wp_get_current_user();